
std::sort - cppreference.com
Notes Before LWG713, the complexity requirement allowed sort() to be implemented using only Quicksort, which may need O (N2 ) comparisons in the worst case. Introsort can handle all cases …
std::ranges::sort - cppreference.com
Sorts the elements in the range [first, last) in non-descending order. The order of equivalent elements is not guaranteed to be preserved. A sequence is sorted with respect to a comparator comp if for any …
qsort, qsort_s - cppreference.com
Notes Despite the name, neither C nor POSIX standards require this function to be implemented using quicksort or make any complexity or stability guarantees. Unlike other bounds-checked functions, …
std::qsort - cppreference.com
The following code sorts an array of integers using qsort():
std::list<T,Allocator>::sort - cppreference.com
std::sort requires random access iterators and so cannot be used with list. This function also differs from std::sort in that it does not require the element type of the list to be swappable, preserves the values …
cppreference.com
What links here Related changes Upload file Special pages Printable version Permanent link Page information
std::stable_sort - cppreference.com
Sorts the elements in the range [first, last) in non-descending order. The order of equivalent elements is guaranteed to be preserved.
Algorithms library - cppreference.com
Parallel algorithms (since C++17) A parallel algorithm is a function template in the algorithms library with a template parameter named ExecutionPolicy or constrained by execution-policy (since C++26). …
std::partial_sort - cppreference.com
Heap sort is used after selection to sort [first, middle) selected elements (see std::sort_heap). Intended use std::partial_sort algorithms are intended to be used for small constant numbers of [first, middle) …
std::is_sorted - cppreference.com
Checks if the elements in range [first, last) are sorted in non-descending order.