How do I acquire a const_iterator (of some container class) from an iterator (of that container class) in C++? What about a const_iterator
const_iterator
iterator
You can convert them. Example:
std::vector v; std::vector::iterator it = v.begin(); std::vector::const_iterator cit = it;
But I guess that is not the answer you are seeking. Show me code. :-)