libycxx

function object

std::ranges::uninitialized_copy

Header
<memory>
Scope
std::ranges

Synopsis

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

Call signatures

uninitialized_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::input_range IR, nothrow_forward_range OR>
      requires std::constructible_from<range_value_t<OR>, std::ranges::range_reference_t<IR>>
    static constexpr std::ranges::uninitialized_copy_result<borrowed_iterator_t<IR>, borrowed_iterator_t<OR>> uninitialized_copy(
        IR&& in_range,
        OR&& out_range);
    (1)
  2. template<
        execution_policy ExecutionPolicy,
        sized_random_access_range IR,
        nothrow_sized_random_access_range OR>
      requires std::constructible_from<range_value_t<OR>, std::ranges::range_reference_t<IR>>
    static std::ranges::uninitialized_copy_result<borrowed_iterator_t<IR>, borrowed_iterator_t<OR>> uninitialized_copy(
        ExecutionPolicy&&,
        IR&& in_range,
        OR&& out_range) noexcept;
    (2)
  3. template<
        std::input_iterator I,
        std::sentinel_for<I> S1,
        nothrow_forward_iterator O,
        nothrow-sentinel-for<O> S2>
      requires std::constructible_from<iter_value_t<O>, std::iter_reference_t<I>>
    static constexpr std::ranges::uninitialized_copy_result<I, O> uninitialized_copy(
        I ifirst,
        S1 ilast,
        O ofirst,
        S2 olast);
    (3)
  4. template<
        execution_policy ExecutionPolicy,
        std::random_access_iterator I,
        std::sized_sentinel_for<I> S1,
        nothrow_random_access_iterator O,
        nothrow-sized-sentinel-for<O> S2>
      requires std::constructible_from<iter_value_t<O>, std::iter_reference_t<I>>
    static std::ranges::uninitialized_copy_result<I, O> uninitialized_copy(
        ExecutionPolicy&&,
        I ifirst,
        S1 ilast,
        O ofirst,
        S2 olast) noexcept;
    (4)