8#ifndef ADOBE_ALGORITHM_REVERSE_HPP
9#define ADOBE_ALGORITHM_REVERSE_HPP
13#include <boost/range/begin.hpp>
14#include <boost/range/end.hpp>
15#include <boost/range/iterator.hpp>
46 while (first != last) {
91template <
class B
idirectionalRange>
92inline void reverse(BidirectionalRange& range) {
93 std::reverse(boost::begin(range), boost::end(range));
101template <
class B
idirectionalRange,
class OutputIterator>
102inline void reverse_copy(BidirectionalRange& range, OutputIterator result) {
103 std::reverse_copy(boost::begin(range), boost::end(range), result);
111template <
class B
idirectionalRange,
class OutputIterator>
112inline void reverse_copy(
const BidirectionalRange& range, OutputIterator result) {
113 std::reverse_copy(boost::begin(range), boost::end(range), result);
124 while (f != m && m != l) {
127 std::iter_swap(f, l);
132 return std::pair<I, I>(f, l);
I reverse_nodes(I first, I last)
I reverse_append(I first, I last, I result)
void reverse_copy(BidirectionalRange &range, OutputIterator result)
reverse implementation
std::pair< I, I > reverse_until(I f, I m, I l)
reverse implementation
void reverse(BidirectionalRange &range)
reverse implementation