function object
std::ranges::iota
- Header
<numeric>- Scope
std::ranges- cppreference
- std::ranges::iota
Synopsis
inline constexpr /* implementation-defined */ iota = {};Call signatures
iota is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.
- (1)
template<std::weakly_incrementable T, std::ranges::output_range<const T&> R> constexpr std::ranges::iota_result<std::ranges::borrowed_iterator_t<R>, T> iota( R&& r, T value); - (2)
template< std::input_or_output_iterator O, std::sentinel_for<O> S, std::weakly_incrementable T> requires std::indirectly_writable<O, const T&> constexpr std::ranges::iota_result<O, T> iota(O first, S last, T value);