Re: [gtkmm] Gtkmm iterators



Vladislav Grinchenko <vgrinche integ com> writes:

> erase() invalidates iterators pointing to elements after 
> the point of deletion.
>
> Never access an element through an invalid iterator; 
> the effect is undefined and quite likely disastrous.

So it's like a std::vector in this respect?

After I call erase(Iter), is Iter still valid (unless it's equal to
end())?


Thanks,
Roger

-- 
Roger Leigh

                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]