This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: forward list patch


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]