If I use a default constructor for an iterator, how to check if it was assigned later on?
For pointers, I could do this :
int *p = NULL; /// some code
I used the following solution:
const MyList_t::const_iterator NullIterator(NULL); const_iterator MyList_t::MyIterator;
Then a check is possible:
if (NullIterator != MyIterator) {}