4 ms·
> Does C++ Pair<> define operator< and operator>? It does. std::sort(pairarray.begin(),pairarray.end()) works about how you'd expect, as long as operator< is
by khedoros1 9y ago
> Does C++ Pair<> define operator< and operator>?
It does.
std::sort(pairarray.begin(),pairarray.end()) works about how you'd expect, as long as operator< is defined for the constituent types of the pair.