
std:: sort - cppreference.com
Feb 10, 2025 · Sorts the elements in the range [first,last) in non-descending order. The order of equal elements is not guaranteed to be preserved.
std::ranges::sort - cppreference.com
Feb 12, 2025 · sort stable_sort partial_sort nth_element partial_sort_copy Binary search operations (on sorted ranges) lower_bound upper_bound binary_search equal_range Set …
qsort, qsort_s - cppreference.com
Jan 22, 2024 · 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 …
Algorithms library - cppreference.com
Feb 14, 2025 · The algorithms library defines functions for a variety of purposes (e.g. searching, sorting, counting, manipulating) that operate on ranges of elements. Note that a range is …
Ranges library (since C++20) - cppreference.com
Feb 20, 2025 · The ranges library is an extension and generalization of the algorithms and iterator libraries that makes them more powerful by making them composable and less error-prone.
std::qsort - cppreference.com
Sep 13, 2023 · Return value (none) Notes Despite the name, C++, C, and POSIX standards do not require this function to be implemented using Quicksort or make any complexity or stability …
std::list<T,Allocator>::sort - cppreference.com
Nov 14, 2021 · Notes 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 …
Standard library header <algorithm> - cppreference.com
Nov 27, 2023 · sort sorts a range into ascending order (function template) [edit] partial_sort sorts the first N elements of a range (function template) [edit] partial_sort_copy copies and partially …
std::ranges::is_sorted - cppreference.com
Feb 12, 2025 · Checks if the elements in range [first, last) are sorted in non-descending order. A sequence is sorted with respect to a comparator comp if for any iterator it pointing to the …
std::stable_sort - cppreference.com
Feb 10, 2025 · Sorts the elements in the range [first,last) in non-descending order. The order of equivalent elements is guaranteed to be preserved.