3#ifndef TETL_ALGORITHM_NTH_ELEMENT_HPP
4#define TETL_ALGORITHM_NTH_ELEMENT_HPP
21template <
typename RandomIt,
typename Compare>
22constexpr auto nth_element(RandomIt first, RandomIt nth, RandomIt last, Compare comp) ->
void
29template <
typename RandomIt>
30constexpr auto nth_element(RandomIt first, RandomIt nth, RandomIt last) ->
void
constexpr auto nth_element(RandomIt first, RandomIt nth, RandomIt last, Compare comp) -> void
nth_element is a partial sorting algorithm that rearranges elements in [first, last) such that:
Definition nth_element.hpp:22
constexpr auto sort(RandomIt first, RandomIt last, Compare comp) -> void
Sorts the elements in the range [first, last) in non-descending order. The order of equal elements is...
Definition sort.hpp:18
Definition adjacent_find.hpp:8
constexpr auto ignore_unused(Types &&...) -> void
Explicitly ignore arguments or variables.
Definition ignore_unused.hpp:17