Function std::vec_sort_by
Sorts by a compile-time ordering (an Order: Less<T>, Greater<T>, or your own struct with 'int cmp(const &T, const &T) const'): every comparison is a direct call the optimizer inlines, unlike sort()'s function pointer.
Sorts by a compile-time ordering (an Order: Less<T>, Greater<T>, or your own struct with 'int cmp(const &T, const &T) const'): every comparison is a direct call the optimizer inlines, unlike sort()'s function pointer.