partial_sort « STL Algorithms Sorting « C++






1.Use partial_sort to sort until the first five elements are sorted
2.Use partial_sort with custom function to sort inversely until the first five elements are sorted
3.Use partial_sort to sort all elements
4.The generic partial_sort algorithms with predicate