Daniel
unread,Jan 5, 2017, 10:48:34 AM1/5/17You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Is there a rationale for why std::back_insert_iterator (and some other output
iterators) declare iterator_traits<It>::value_type,
iterator_traits<It>::difference_type, iterator_traits<It>::pointer, and
iterator_traits<It>::reference to be void, as opposed to picking them up
from the container type?
The context for the question is implementing a template function similar to
std::copy or std::transform, but with different implementations depending on
properties of the value_type written to.
Thanks,
Daniel