Skip to content

Commit 3637c13

Browse files
burblebeetkoeppe
authored andcommitted
LWG4164 Missing guarantees for forward_list modifiers
1 parent bda434e commit 3637c13

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

source/containers.tex

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7200,10 +7200,13 @@
72007200
\rSec3[forward.list.modifiers]{Modifiers}
72017201

72027202
\pnum
7203-
None of the overloads of \tcode{insert_after} shall affect the validity of iterators and
7204-
references, and \tcode{erase_after} shall invalidate only iterators and references to
7205-
the erased elements. If an exception is thrown during \tcode{insert_after} there shall
7206-
be no effect. Inserting \tcode{n} elements into a \tcode{forward_list} is linear in
7203+
The member functions in this subclause
7204+
do not affect the validity of iterators and references
7205+
when inserting elements, and when erasing elements
7206+
invalidate iterators and references to the erased elements only.
7207+
If an exception is thrown by any of these member functions
7208+
there is no effect on the container.
7209+
Inserting \tcode{n} elements into a \tcode{forward_list} is linear in
72077210
\tcode{n}, and the number of calls to the copy or move constructor of \tcode{T} is
72087211
exactly equal to \tcode{n}. Erasing \tcode{n} elements from a \tcode{forward_list} is
72097212
linear in \tcode{n} and the number of calls to the destructor of type \tcode{T} is

0 commit comments

Comments
 (0)