![]() |
Home | Libraries | People | FAQ | More |
single_view is a view into
a value as a single element sequence.
#include <boost/fusion/sequence/view/single_view.hpp>
template <typename T> struct single_view;
| Parameter | Description | Default |
|---|---|---|
T |
Any type |
Notation
Ssingle_view type
s,
s2single_view
xT
Semantics of an expression is defined only where it differs from, or is not defined in Forward Sequence.
| Expression | Semantics |
|---|---|
S(x) |
Creates
a single_view from
x. |
S(s) |
Copy
constructs a single_view
from another single_view,
s. |
s =
s2 |
Assigns
to a single_view,
s, from another
single_view, s2. |
single_view<int> view(3); std::cout << view << std::endl;
| Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias Schwinger |