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:swap_ranges swap_ranges]
11 template<class SinglePassRange1, class SinglePassRange2>
12 SinglePassRange2& swap_ranges(SinglePassRange1& rng1, SinglePassRange& rng2);
17 `swap_ranges` swaps each element `x` in `rng1` with the corresponding element `y` in `rng2`.
18 Returns a reference to `rng2`.
22 Defined in the header file `boost/range/algorithm/swap_ranges.hpp`
24 [heading Requirements]
26 * `SinglePassRange1` is a model of the __single_pass_range__ Concept.
27 * `SinglePassRange1` is mutable.
28 * `SinglePassRange2` is a model of the __single_pass_range__ Concept.
29 * `SinglePassRange2` is mutable.
33 Linear. Exactly `distance(rng1)` elements are swapped.