13#ifndef RANGES_V3_ALGORITHM_FILL_N_HPP
14#define RANGES_V3_ALGORITHM_FILL_N_HPP
25#include <range/v3/utility/static_const.hpp>
27#include <range/v3/detail/prologue.hpp>
33 RANGES_FUNC_BEGIN(fill_n)
36 template(typename O, typename V)(
38 constexpr O RANGES_FUNC(fill_n)(O first, iter_difference_t<O> n, V const & val)
40 RANGES_EXPECT(n >= 0);
42 auto b = uncounted(first);
43 for(; n != 0; ++b, --n)
45 return recounted(first, b, norig);
48 RANGES_FUNC_END(fill_n)
57#include <range/v3/detail/epilogue.hpp>
The output_iterator concept.