Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2013. The current version is 1.89.0.
| Front Page / Algorithms / Transformation Algorithms / reverse |
template<
typename Sequence
, typename In = unspecified
>
struct reverse
{
typedef unspecified type;
};
Returns a reversed copy of the original sequence. reverse is a synonym for reverse_copy.
[Note: This wording applies to a no-inserter version(s) of the algorithm. See the Expression semantics subsection for a precise specification of the algorithm's details in all cases — end note]
#include <boost/mpl/reverse.hpp>
| Parameter | Requirement | Description |
|---|---|---|
| Sequence | Forward Sequence | A sequence to reverse. |
| In | Inserter | An inserter. |
For any Forward Sequence s, and an Inserter in:
typedef reverse<s,in>::type r;
| Return type: | A type. |
|---|---|
| Semantics: | Equivalent to typedef reverse_copy<s,in>::type r; |
Linear.