...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
template<class ForwardRange, class Value> ForwardRange& fill( ForwardRange& rng, const Value& val );
fill
assigns the value
val
to every element
in the range rng
.
Defined in the header file boost/range/algorithm/fill.hpp
ForwardRange
is a
model of the Forward
Range Concept.
ForwardRange
is mutable.
Value
is a model
of the AssignableConcept
.
Value
is convertible
to ForwardRange
's
value type.
Linear. Exactly distance(rng)
assignments are performed.