libycxx

function object

std::ranges::rotate_copy

Scope
std::ranges

Synopsis

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

Call signatures

rotate_copy 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, std::weakly_incrementable O>
      requires std::indirectly_copyable<iterator_t<R>, O>
    constexpr std::ranges::rotate_copy_result<borrowed_iterator_t<R>, O> rotate_copy(
        R&& r,
        iterator_t<R> middle,
        O result);
    (1)
  2. template<
        std::forward_iterator I,
        std::sentinel_for<I> S,
        std::weakly_incrementable O>
      requires std::indirectly_copyable<I, O>
    constexpr std::ranges::rotate_copy_result<I, O> rotate_copy(
        I first,
        I middle,
        S last,
        O result);
    (2)
  3. template<
        class ExecutionPolicy,
        sized_random_access_range R,
        sized_random_access_range OutR>
      requires execution-policy<ExecutionPolicy> &&
                 std::indirectly_copyable<std::ranges::iterator_t<R>, std::ranges::iterator_t<OutR>>
    std::ranges::rotate_copy_truncated_result<std::ranges::borrowed_iterator_t<R>, std::ranges::borrowed_iterator_t<OutR>> rotate_copy(
        ExecutionPolicy&& exec,
        R&& r,
        std::ranges::iterator_t<R> middle,
        OutR&& result_r) noexcept;
    (3)
  4. template<
        class ExecutionPolicy,
        std::random_access_iterator I,
        std::sized_sentinel_for<I> S,
        std::random_access_iterator O,
        std::sized_sentinel_for<O> OutS>
      requires execution-policy<ExecutionPolicy> && std::indirectly_copyable<I, O>
    std::ranges::rotate_copy_truncated_result<I, O> rotate_copy(
        ExecutionPolicy&&,
        I first,
        I middle,
        S last,
        O result,
        OutS result_last) noexcept;
    (4)