![]() |
Home | Libraries | People | FAQ | More |
single_view is a view into a value as a single element sequence.
#include <boost/fusion/view/single_view.hpp> #include <boost/fusion/include/single_view.hpp>
template <typename T> struct single_view;
|
Parameter |
Description |
Default |
|---|---|---|
|
T |
Any type |
|
Notation
A single_view type
Instances of single_view
An instance of T
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;