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 2024. The current version is 1.89.0.
Returns the result type of reverse, given the input sequence
type.
template< typename Sequence > struct reverse { typedef unspecified type; };
Table 1.95. Parameters
|
Parameter |
Requirement |
Description |
|---|---|---|
|
|
A model of Bidirectional Sequence |
Operation's argument |
result_of::reverse<Sequence>::type
Return type:
Sequence
is a Bidirectional
Sequence else, Random
Access Sequence if Sequence
is a Random
Access Sequence.
Sequence
implements the Associative
Sequence model.
Semantics: Returns a sequence with the
elements in the reverse order to Sequence.
Constant.
#include <boost/fusion/algorithm/transformation/reverse.hpp> #include <boost/fusion/include/reverse.hpp>