libycxx

function object

std::ranges::is_sorted_until

Scope
std::ranges

Synopsis

inline constexpr /* implementation-defined */ is_sorted_until = {};

Call signatures

is_sorted_until is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.

  1. template<
        std::ranges::forward_range R,
        class Proj = std::identity,
        std::indirect_strict_weak_order<std::projected<iterator_t<R>, Proj>> Comp = std::ranges::less>
    [[nodiscard]] constexpr borrowed_iterator_t<R> is_sorted_until(
        R&& r,
        Comp comp = {},
        Proj proj = {});
    (1)
  2. template<
        std::forward_iterator I,
        std::sentinel_for<I> S,
        class Proj = std::identity,
        std::indirect_strict_weak_order<std::projected<I, Proj>> Comp = std::ranges::less>
    [[nodiscard]] constexpr I is_sorted_until(
        I first,
        S last,
        Comp comp = {},
        Proj proj = {});
    (2)
  3. template<
        class ExecutionPolicy,
        sized-random-access-range R,
        class Proj = std::identity,
        std::indirect_strict_weak_order<std::projected<std::ranges::iterator_t<R>, Proj>> Comp = std::ranges::less>
      requires execution-policy<ExecutionPolicy>
    decltype(auto) is_sorted_until(
        ExecutionPolicy&&,
        R&& r,
        Comp comp = {},
        Proj proj = {}) noexcept;
    (3)
  4. template<
        class ExecutionPolicy,
        std::random_access_iterator I,
        std::sized_sentinel_for<I> S,
        class Proj = std::identity,
        std::indirect_strict_weak_order<std::projected<I, Proj>> Comp = std::ranges::less>
      requires execution-policy<ExecutionPolicy>
    decltype(auto) is_sorted_until(
        ExecutionPolicy&&,
        I first,
        S last,
        Comp comp = {},
        Proj proj = {}) noexcept;
    (4)