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:overwrite overwrite]
12 class SinglePassRange1,
13 class SinglePassRange2
15 void overwrite(const SinglePassRange1& from,
16 SinglePassRange2& to);
21 `overwrite` assigns the values from the range `from` into the range `to`.
25 Defined in the header file `boost/range/algorithm_ext/overwrite.hpp`
27 [heading Requirements]
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.
37 Linear. `distance(rng1)` assignments are performed.