libycxx

function object

std::ranges::rotate

Scope
std::ranges

Synopsis

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

Call signatures

rotate 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>
      requires std::permutable<iterator_t<R>>
    constexpr borrowed_subrange_t<R> rotate(R&& r, iterator_t<R> middle);
    (1)
  2. template<std::permutable I, std::sentinel_for<I> S>
    constexpr std::ranges::subrange<I> rotate(I first, I middle, S last);
    (2)
  3. template<
        class ExecutionPolicy,
        sized-random-access-range R>
      requires execution-policy<ExecutionPolicy> && std::permutable<std::ranges::iterator_t<R>>
    decltype(auto) rotate(
        ExecutionPolicy&&,
        R&& r,
        std::ranges::iterator_t<R> middle) noexcept;
    (3)
  4. template<
        class ExecutionPolicy,
        std::random_access_iterator I,
        std::sized_sentinel_for<I> S>
      requires execution-policy<ExecutionPolicy> && std::permutable<I>
    decltype(auto) rotate(
        ExecutionPolicy&&,
        I first,
        I middle,
        S last) noexcept;
    (4)