libycxx

function object

std::ranges::uninitialized_fill

Header
<memory>
Scope
std::ranges

Synopsis

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

Call signatures

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

  1. template<nothrow_forward_range R, class T = range_value_t<R>>
      requires std::constructible_from<range_value_t<R>, const T&>
    static constexpr borrowed_iterator_t<R> uninitialized_fill(
        R&& r,
        const T& x);
    (1)
  2. template<
        nothrow_forward_iterator I,
        nothrow-sentinel-for<I> S,
        class T = iter_value_t<I>>
      requires std::constructible_from<iter_value_t<I>, const T&>
    static constexpr I uninitialized_fill(I first, S last, const T& x);
    (2)
  3. template<
        execution_policy ExecutionPolicy,
        nothrow_sized_random_access_range R,
        class T = range_value_t<R>>
      requires std::constructible_from<range_value_t<R>, const T&>
    static borrowed_iterator_t<R> uninitialized_fill(
        ExecutionPolicy&&,
        R&& r,
        const T& x) noexcept;
    (3)
  4. template<
        execution_policy ExecutionPolicy,
        nothrow_random_access_iterator I,
        nothrow-sized-sentinel-for<I> S,
        class T = iter_value_t<I>>
      requires std::constructible_from<iter_value_t<I>, const T&>
    static I uninitialized_fill(
        ExecutionPolicy&&,
        I first,
        S last,
        const T& x) noexcept;
    (4)