![]() |
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.
#include <boost/fusion/sequence/view/reverse_view.hpp>
template <typename Sequence> struct reverse_view;
|
Parameter |
Description |
Default |
|---|---|---|
|
|
|
Notation
RVreverse_view type
sSequence
rv,
rv2reverse_view
Semantics of an expression is defined only where it differs from, or is not defined in Bidirectional Sequence.
|
Expression |
Semantics |
|---|---|
|
|
Creates a unary |
|
|
Copy constructs a |
|
|
Assigns to a |
typedef vector<int, short, double> vector_type;
vector_type vec(2, 5, 3.3);
reverse_view<vector_type> reverse(vec);
std::cout << reverse << std::endl;
| Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias Schwinger |