• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:overwrite overwrite]
7
8[heading Prototype]
9
10``
11template<
12    class SinglePassRange1,
13    class SinglePassRange2
14    >
15void overwrite(const SinglePassRange1& from,
16               SinglePassRange2& to);
17``
18
19[heading Description]
20
21`overwrite` assigns the values from the range `from` into the range `to`.
22
23[heading Definition]
24
25Defined in the header file `boost/range/algorithm_ext/overwrite.hpp`
26
27[heading Requirements]
28
29# `SinglePassRange1` is a model of the __single_pass_range__ Concept.
30# `SinglePassRange2` is a model of the __single_pass_range__ Concept.
31# `SinglePassRange2` is mutable.
32# `distance(SinglePassRange1) <= distance(SinglePassRange2)`
33# `SinglePassRange1`'s value type is convertible to `SinglePassRange2`'s value type.
34
35[heading Complexity]
36
37Linear. `distance(rng1)` assignments are performed.
38
39[endsect]
40