0

C++11 introduced free function overloads for std::begin and std::end that work on containers and arrays. When used on a container, std::begin will call the container's begin function. It seems to me then that there isn't a point in using vect.begin() anymore and std::begin(vect) should be used instead for consistency. Is there any reason not to prefer these (aside from compiling in older standard versions)?

0 Answers0