function object
std::ranges::fill
- Header
<algorithm>- Draft
- [mdspan.copy]
- Scope
std::ranges- cppreference
- std::ranges::fill
Synopsis
inline constexpr /* implementation-defined */ fill = {};Call signatures
fill is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.
- (1)
template<class R, class T = std::ranges::range_value_t<R>> requires std::ranges::output_range<R, const T&> constexpr borrowed_iterator_t<R> fill(R&& r, const T& value); - (2)
template<class O, std::sentinel_for<O> S, class T = std::iter_value_t<O>> requires std::output_iterator<O, const T&> constexpr O fill(O first, S last, const T& value); - (3)
template< class ExecutionPolicy, std::random_access_iterator O, std::sized_sentinel_for<O> S, class T = std::iter_value_t<O>> requires execution-policy<ExecutionPolicy> && std::indirectly_writable<O, const T&> decltype(auto) fill( ExecutionPolicy&&, O first, S last, const T& value) noexcept; - (4)
template< class ExecutionPolicy, sized-random-access-range R, class T = std::ranges::range_value_t<R>> requires execution-policy<ExecutionPolicy> && std::indirectly_writable<std::ranges::iterator_t<R>, const T&> decltype(auto) fill(ExecutionPolicy&&, R&& r, const T& value) noexcept;