4#ifndef TETL_ALGORITHM_PARTIAL_SORT_HPP
5#define TETL_ALGORITHM_PARTIAL_SORT_HPP
7#include <etl/_algorithm/sort.hpp>
8#include <etl/_utility/ignore_unused.hpp>
20template <
typename RandomIt,
typename Compare>
21constexpr auto partial_sort(RandomIt first, RandomIt middle, RandomIt last, Compare comp) ->
void
24 etl::ignore_unused(middle);
25 etl::sort(first, last, comp);
28template <
typename RandomIt>
29constexpr auto partial_sort(RandomIt first, RandomIt middle, RandomIt last) ->
void
31 etl::ignore_unused(middle);
32 etl::sort(first, last);
constexpr auto partial_sort(RandomIt first, RandomIt middle, RandomIt last, Compare comp) -> void
Rearranges elements such that the range [first, middle) contains the sorted middle - first smallest e...
Definition partial_sort.hpp:21
Definition adjacent_find.hpp:9
constexpr auto partial_sort(RandomIt first, RandomIt middle, RandomIt last) -> void
Definition partial_sort.hpp:29