3 ms·
I used a container version of sort() to avoid being explicit about the iterators Is that something new in C++14, coulnd't immediately find it on the net? Or is
by stinos 12y ago
I used a container version of sort() to avoid being explicit about the iterators
Is that something new in C++14, coulnd't immediately find it on the net? Or is it just a version he wrote himself? The latter makes sense for pretty much all algorithms in <algorithm> which you'd use often on a container, to the point you'd start wondering why the standard doesn't provide them built-in.
- jeorgun 12y agoThe C++17 standard should have them, once concepts become a thing; iirc they're not in it now to avoid issues with choosing between sort(Container, Comparator) and sort(Iterator, Iterator) overloads.