Skip to content

Commit 4086402

Browse files
burblebeetkoeppe
authored andcommitted
LWG3816 flat_map and flat_multimap should impose sequence container requirements
Fixes NB US 103 (C++23 CD).
1 parent d4e29f5 commit 4086402

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

source/containers.tex

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14621,10 +14621,12 @@
1462114621
\end{note}
1462214622

1462314623
\pnum
14624-
Any sequence container\iref{sequence.reqmts} \tcode{C}
14625-
supporting \oldconcept{RandomAccessIterator} can be used
14626-
to instantiate \tcode{flat_map},
14627-
as long as invocations of
14624+
Any type \tcode{C}
14625+
that meets the sequence container requirements\iref{sequence.reqmts}
14626+
can be used to instantiate \tcode{flat_map},
14627+
as long as
14628+
\tcode{C::iterator} meets the \oldconcept{RandomAccessIterator} requirements and
14629+
invocations of
1462814630
member functions \tcode{C::size} and \tcode{C::max_size} do not exit via an exception.
1462914631
In particular, \tcode{vector}\iref{vector} and \tcode{deque}\iref{deque}
1463014632
can be used.
@@ -15763,10 +15765,12 @@
1576315765
\end{note}
1576415766

1576515767
\pnum
15766-
Any sequence container\iref{sequence.reqmts} \tcode{C}
15767-
supporting \oldconcept{RandomAccessIterator} can be used to
15768-
instantiate \tcode{flat_multimap},
15769-
as long as invocations of
15768+
Any type \tcode{C}
15769+
that meets the sequence container requirements\iref{sequence.reqmts}
15770+
can be used to instantiate \tcode{flat_multimap},
15771+
as long as
15772+
\tcode{C::iterator} meets the \oldconcept{RandomAccessIterator} requirements and
15773+
invocations of
1577015774
member functions \tcode{C::size} and \tcode{C::max_size} do not exit via an exception.
1577115775
In particular,
1577215776
\tcode{vector}\iref{vector} and \tcode{deque}\iref{deque} can be used.

0 commit comments

Comments
 (0)