I am trying to learn iterators in C++. I don't understand the use of NameCollection::value_type here in Iterator and addNext.
Also in the next function I get an error when I use value_type value=(*m_itr) instead of NameIterator::value_type = (*m_itr). Can anyone explain the two problems?