Skip to content

Commit ecb0f91

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

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

source/containers.tex

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7200,10 +7200,15 @@
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
7206+
when erasing elements
7207+
%FIXME: This sentence hard to parse. Rewrite, or add a comma here and emply bullets.
7208+
invalidate iterators and references to the erased elements only.
7209+
If an exception is thrown by any of these member functions
7210+
there is no effect on the container.
7211+
Inserting \tcode{n} elements into a \tcode{forward_list} is linear in
72077212
\tcode{n}, and the number of calls to the copy or move constructor of \tcode{T} is
72087213
exactly equal to \tcode{n}. Erasing \tcode{n} elements from a \tcode{forward_list} is
72097214
linear in \tcode{n} and the number of calls to the destructor of type \tcode{T} is

0 commit comments

Comments
 (0)