]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/range/doc/reference/algorithm/fill.qbk
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / range / doc / reference / algorithm / fill.qbk
1 [/
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)
5 /]
6 [section:fill fill]
7
8 [heading Prototype]
9
10 ``
11 template<class ForwardRange, class Value>
12 ForwardRange& fill( ForwardRange& rng, const Value& val );
13 ``
14
15 [heading Description]
16
17 `fill` assigns the value `val` to every element in the range `rng`.
18
19 [heading Definition]
20
21 Defined in the header file `boost/range/algorithm/fill.hpp`
22
23 [heading Requirements]
24
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.
29
30 [heading Complexity]
31
32 Linear. Exactly `distance(rng)` assignments are performed.
33
34 [endsect]
35
36