c++ - partially sorting in decending order -


we have partially sort array in descending order.

i know std::partial_sort in ascending order.

http://en.cppreference.com/w/cpp/algorithm/partial_sort.

is other such function can or fast algorithm so.

the second overload in reference linked takes comparer – pass in instance of std::greater<t>.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -