3 ms·
Adding custom comparators is trivial with lambdas; std::sort( begin( c ), end( c ), []( const auto& lhs, const auto& rhs ) { /* some comparison impl for th
by clappski 6y ago
Adding custom comparators is trivial with lambdas;
std::sort( begin( c ), end( c ), []( const auto& lhs, const auto& rhs ) { /* some comparison impl for the value_type */ } );
Same for everything that take a comparator in <algorithm>