mirror of
https://github.com/boostorg/range.git
synced 2025-07-04 08:16:36 +02:00
32 lines
738 B
Plaintext
32 lines
738 B
Plaintext
![]() |
[section:reverse_copy reverse_copy]
|
||
|
|
||
|
[heading Prototype]
|
||
|
|
||
|
``
|
||
|
template<class BidirectionalRange, class OutputIterator>
|
||
|
OutputIterator reverse_copy(const BidirectionalRange& rng, OutputIterator out);
|
||
|
``
|
||
|
|
||
|
[heading Description]
|
||
|
|
||
|
`reverse_copy` copies the elements from `rng` in reverse order to `out`.
|
||
|
Returns the output iterator one passed the last copied element.
|
||
|
|
||
|
[heading Definition]
|
||
|
|
||
|
Defined in the header file `boost/range/algorithm/reverse_copy.hpp`
|
||
|
|
||
|
[heading Requirements]
|
||
|
|
||
|
* `BidirectionalRange` is a model of the __bidirectional_range__ Concept.
|
||
|
* `BidirectionalRange` is mutable.
|
||
|
* `OutputIterator` is a model of the `OutputIteratorConcept`.
|
||
|
|
||
|
[heading Complexity]
|
||
|
|
||
|
Linear. `reverse_copy` makes `distance(rng)` copies.
|
||
|
|
||
|
[endsect]
|
||
|
|
||
|
|