partial_sort « STL Algorithms Sorting « C++ Tutorial






27.5.partial_sort
27.5.1.Use partial_sort to sort until the first five elements are sorted
27.5.2.Use partial_sort with custom function to sort inversely until the first five elements are sorted
27.5.3.Use partial_sort to sort all elements
27.5.4.The generic partial_sort algorithms with predicate