...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
joint_view
presents a view
which is a concatenation of two sequences.
#include <boost/fusion/view/joint_view.hpp> #include <boost/fusion/include/joint_view.hpp>
template <typename Sequence1, typename Sequence2> struct joint_view;
Parameter |
Description |
Default |
---|---|---|
|
||
|
Sequence1
and Sequence2
implement
the Associative
Sequence model.
Notation
JV
A joint_view
type
s1
An instance of Sequence1
s2
An instance of Sequence2
jv
, jv2
Instances of joint_view
Semantics of an expression is defined only where it differs from, or is not defined in the implemented models.
Expression |
Semantics |
---|---|
|
Creates a |
|
Copy constructs a |
|
Assigns to a |
vector
<int, char> v1(3, 'x');vector
<std::string, int> v2("hello", 123); joint_view<vector
<int, char> ,vector
<std::string, int> > view(v1, v2); std::cout << view << std::endl;