2 Copyright 2010 Neil Groves
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 [section:fill_n fill_n]
11 template<class ForwardRange, class Size, class Value>
12 ForwardRange& fill( ForwardRange& rng, Size n, const Value& val );
17 `fill_n` assigns the value `val` to `n` elements in the range `rng` beginning with `boost::begin(rng)`.
21 Defined in the header file `boost/range/algorithm/fill_n.hpp`
23 [heading Requirements]
25 * `ForwardRange` is a model of the __forward_range__ Concept.
26 * `ForwardRange` is mutable.
27 * `Value` is a model of the `AssignableConcept`.
28 * `Value` is convertible to `ForwardRange`'s value type.
32 Linear. Exactly `n` assignments are performed.