Use std::iterator_traits instead of detail::iterator_traits.
Cosmetics.