This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of New status.

3966. The value_type and reference members of std::flat_(multi)map::(const_)iterator are unclear

Section: [], [flat.multimap.overview] Status: New Submitter: Jiang An Opened: 2023-08-04 Last modified: 2023-10-30

Priority: 3

View all other issues in [].

View all issues with New status.

Discussion: [] and [flat.multimap.overview] currently only require that the iterator types meet Cpp17InputIterator requirements and model the std::random_access_iterator concept.

The intent seems to be that

However, such intent doesn't seem to be clear.

Moreover, given such possibly intended iterator types don't meet Cpp17ForwardIterator requirements, we may need to mention the exceptions in [container.reqmts] or [associative.reqmts.general].

[2023-10-30; Reflector poll]

Set priority to 3 after reflector poll.

Proposed resolution: