| 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.