STL - checking if iterators are valid?

Started by
1 comment, last by Brother Bob 18 years, 9 months ago
Hello, I have a question about STL iterators - is it possible to check whether STL iterators (i.e. std::list< int >::iterator) are still valid? In other words, is it possible to check if the item that the iterator points to has been removed/deleted yet? Thanks in advance!
- fyhuang [ site ]
Advertisement
Nope, although I've heard that some implementations like STLport offers such functoianlity as an extension during debug builds.
HardDrop - hard link shell extension."Tread softly because you tread on my dreams" - Yeats
Quote:Original post by DigitalDelusion
Nope, although I've heard that some implementations like STLport offers such functoianlity as an extension during debug builds.


Check out this. Tried it a little myself, but not for anything serious, but I'm very impressed. Looks like a very powerful addition to help debugging.

This topic is closed to new replies.

Advertisement