Re: [gtkmm] Gtkmm iterators
- From: Roger Leigh <roger whinlatter uklinux net>
- To: Vladislav Grinchenko <vgrinche integ com>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] Gtkmm iterators
- Date: Mon, 22 Dec 2003 14:51:57 +0000
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]