Unless otherwise specified (either explicitly or by defining a function in terms of other functions), invoking a container member function or passing a container as an argument to a library function shall not invalidate iterators to, or change the values of, objects within that container.

I suppose that the first sentence of [sequence.forwardlist.modifiers]/1 is redundant. 

On Wed, Jun 26, 2019 at 3:39 PM Tadeus Prastowo via Std-Discussion <> wrote:

To quote
None of the overloads of insert_­after shall affect the validity of
iterators and references, [...].

And, to quote
on push_front: Effects: Inserts a copy of x at the beginning of the

So, there is no requirement that performing push_front on an
std::forward_list object shall not invalidate any iterators and/or

Isn't this a defect in the standard, considering that
claims that no iterators and references will be invalidated by

Thank you.

Best regards,
Std-Discussion mailing list

Brian Bi