As the title states. Presume we have a container like std::vector c
and want to use the iterators.
As example should I prefer writing:
std::accumulate( c.begin(), c.end(), 0 );
or
std::accumulate( begin( c ), end( c ), 0 );
Which case is preferable and why? Are there special cases which only one type can handle or are they always interchangeable?