If I have std::vector
(which is a std::vector
and will be always a std::vector
).
Is it superior to use std::begin()
instead of std::vector::begin()
(or the opposite)?
Will there be any performance increase/decrease?
Example:
std::vector<int> foo(100, 5);
std::sort(foo.begin(), foo.end()); // Case 1
std::sort(std:begin(foo), std::end(foo)); // Case 2