blob: b19ed9fe05569d4673ca04a53a7947259c365271 [file] [log] [blame]
Brian Silverman598d0292018-08-04 23:56:47 -07001[/
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:reverse_copy reverse_copy]
7
8[heading Prototype]
9
10``
11template<class BidirectionalRange, class OutputIterator>
12OutputIterator reverse_copy(const BidirectionalRange& rng, OutputIterator out);
13``
14
15[heading Description]
16
17`reverse_copy` copies the elements from `rng` in reverse order to `out`.
18Returns the output iterator one passed the last copied element.
19
20[heading Definition]
21
22Defined in the header file `boost/range/algorithm/reverse_copy.hpp`
23
24[heading Requirements]
25
26* `BidirectionalRange` is a model of the __bidirectional_range__ Concept.
27* `BidirectionalRange` is mutable.
28* `OutputIterator` is a model of the `OutputIteratorConcept`.
29
30[heading Complexity]
31
32Linear. `reverse_copy` makes `distance(rng)` copies.
33
34[endsect]
35
36