3#ifndef pRC_ALGORITHMS_SORT_H
4#define pRC_ALGORITHMS_SORT_H
12 template<
class C,
class T, If<IsSubscriptable<T>> = 0,
13 class S = ResultOf<Subscript, T &, Index>, If<IsInvocable<C, S, S>> = 0,
14 If<IsAssignable<S>> = 0>
19 [](
auto &a,
auto const &
compare,
auto const k,
auto const d)
23 auto const x = move(a[
i]);
31 a[
j] = move(a[
j - 1]);
52 template<
class C = Less,
class T, If<IsSubscriptable<T>> = 0,
53 class S = ResultOf<Subscript, T &, Index>, If<IsInvocable<C, S, S>> = 0,
54 If<IsAssignable<S>> = 0>
55 static inline constexpr void sort(
T &a,
Size const k = T::size(),
Definition cholesky.hpp:18
std::size_t Size
Definition type_traits.hpp:20
static constexpr void sort(C const &compare, T &a, Size const k=T::size(), Size const d=0)
Definition sort.hpp:15
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13
Size Index
Definition type_traits.hpp:21