13 #ifndef RANGES_V3_NUMERIC_IOTA_HPP
14 #define RANGES_V3_NUMERIC_IOTA_HPP
21 #include <range/v3/utility/static_const.hpp>
23 #include <range/v3/detail/prologue.hpp>
31 template(
typename O,
typename S,
typename T)(
32 requires output_iterator<O, T const &> AND sentinel_for<S, O> AND
33 weakly_incrementable<T>)
34 O operator()(O
first, S last, T val)
const
37 *
first = detail::as_const(val);
41 template(
typename Rng,
typename T)(
42 requires output_range<Rng, T const &> AND weakly_incrementable<T>)
43 borrowed_iterator_t<Rng> operator()(Rng && rng, T val)
const
45 return (*
this)(begin(rng), end(rng), detail::move(val));
53 #include <range/v3/detail/epilogue.hpp>
RANGES_INLINE_VARIABLE(detail::to_container_fn< detail::from_range< std::vector >>, to_vector) template< template< typename... > class ContT > auto to(RANGES_HIDDEN_DETAIL(detail
For initializing a container of the specified type with the elements of an Range.
Definition: conversion.hpp:399
front< Pair > first
Retrieve the first element of the pair Pair.
Definition: meta.hpp:2251