i just want to check, if the iterator points on an object in a list.
What’s the cmd?
Thank you. 🙂
SkyThe
EDIT:
Hmm,.. ok i tried it.
Now there is a Error: “Expression: list iterators incompitable”
Maybe some code:
#include <list>
list<obj> list;
list<obj>::iterator it;
if(it != list.end()){ //here the error pops up when i debug
vShowStatus();
}else{
cout << "...";
}
1 Answer