STL - checking if iterators are valid?
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!
Nope, although I've heard that some implementations like STLport offers such functoianlity as an extension during debug builds.
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
Popular Topics
Advertisement