Skip to content

Commit 8f86950

Browse files
burblebeetkoeppe
authored andcommitted
LWG3578 Iterator SCARYness in the context of associative container merging
1 parent 7578125 commit 8f86950

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/containers.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3535,7 +3535,7 @@
35353535

35363536
\pnum
35373537
\expects
3538-
\tcode{a.get_allocator() == a2.get_allocator()}.
3538+
\tcode{a.get_allocator() == a2.get_allocator()} is \tcode{true}.
35393539

35403540
\pnum
35413541
\effects
@@ -3550,7 +3550,8 @@
35503550
\ensures
35513551
Pointers and references to the transferred elements of \tcode{a2}
35523552
refer to those same elements but as members of \tcode{a}.
3553-
Iterators referring to the transferred elements
3553+
If \tcode{a.begin()} and \tcode{a2.begin()} have the same type,
3554+
iterators referring to the transferred elements
35543555
will continue to refer to their elements,
35553556
but they now behave as iterators into \tcode{a}, not into \tcode{a2}.
35563557

0 commit comments

Comments
 (0)