cpp/iterator/iterator

is the base class provided to simplify definitions of the required types for iterators.