Hello,
I have a question regarding to
the self-defined iterator in C++? If I want to use my own iterator in
combination with algorithm functions from STL, I think i need to implement
iterator_traits (compiled with g++). But I do not know how to implement
iterator_traits in my iterator class. Last time I just added those
iterator_traits member into the class, and the compiler complains that I
redefined the methods of the outer list class outside the iterator. Could
anyone please be kind enough to give me some hint here? Thank you very much.
Have a good one.
ginger