forward list patch
Paolo Carlini
paolo.carlini@oracle.com
Wed Oct 27 20:52:00 GMT 2010
On 10/27/2010 09:55 PM, François Dumont wrote:
> You said that swap is expected to behave in constant time and I agree.
> But I think people are also expecting the swap operation not to
> invalidate any iterator. AFAIK this assertion is correct for all
> containers, why would it be different for the forward_list ?
Actually, it is not correct: C++0x says that swap in general can
invalidate end().
Paolo.
More information about the Libstdc++
mailing list