14#ifndef RANGES_V3_ACTION_STABLE_SORT_HPP
15#define RANGES_V3_ACTION_STABLE_SORT_HPP
26#include <range/v3/utility/static_const.hpp>
28#include <range/v3/detail/prologue.hpp>
38 template(
typename C,
typename P =
identity)(
40 constexpr auto operator()(C pred, P proj = P{})
const
42 return make_action_closure(
46 template(
typename Rng,
typename C =
less,
typename P =
identity)(
48 Rng operator()(Rng && rng, C pred = C{}, P proj = P{})
const
50 ranges::stable_sort(rng, std::move(pred), std::move(proj));
51 return static_cast<Rng &&
>(rng);
62#include <range/v3/detail/epilogue.hpp>
The forward_range concept.
decltype(begin(declval(Rng &))) iterator_t
Definition: access.hpp:698
RANGES_INLINE_VARIABLE(detail::to_container_fn< detail::from_range< std::vector > >, to_vector) template< template< typename... > class ContT > auto to(RANGES_HIDDEN_DETAIL(detail
For initializing a container of the specified type with the elements of an Range.
Definition: conversion.hpp:399
defer< bind_back, Fn, Ts... > bind_back
Definition: meta.hpp:994
bool_<(T::type::value< U::type::value)> less
A Boolean integral constant wrapper around true if T::type::value is less than U::type::value; false,...
Definition: meta.hpp:255
Definition: action.hpp:141
Definition: stable_sort.hpp:37
Definition: identity.hpp:25