.working ======= >>>>>>> .merge-right.r57125
![]() |
Home | Libraries | People | FAQ | More |
reverse_view presents a reversed view of underlying sequence. The first element will be its last and the last element will be its first.
<<<<<<< .working#include <boost/fusion/view/reverse_view.hpp> #include <boost/fusion/include/reverse_view.hpp><<<<<<< .working
template <typename Sequence> struct reverse_view;<<<<<<< .working
Parameter |
Description |
Default |
|---|---|---|
Sequence |
|
A model of the same sequence concept as Sequence.
Sequence
implements the Associative
Sequence model.
Notation
A reverse_view type
An instance of Sequence
Instances of reverse_view
Semantics of an expression is defined only where it differs from, or is not <<<<<<< .working defined in Bidirectional Sequence. ======= defined in the implemented models. >>>>>>> .merge-right.r57242
Expression |
Semantics |
|---|---|
RV(s) |
Creates a unary reverse_view given sequence, s. |
RV(rv) |
Copy constructs a reverse_view from another reverse_view, rv. |
rv = rv2 |
Assigns to a reverse_view, rv, from another reverse_view, rv2. |
typedef vector<int, short, double> vector_type; =======Example
typedefvector<int, short, double> vector_type; >>>>>>> .merge-right.r57125 vector_type vec(2, 5, 3.3); reverse_view<vector_type> reverse(vec); std::cout << reverse << std::endl;