My question is sure a simple one for anybody familiar with C++ syntax. I\'m just learning c++ and this is some sort of homework.
template
This will also work starting c++ 11:
typename Iter::value_type
So you do not have to type the whole std::iterator_traits thing.
std::iterator_traits