...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Front Page / Sequences / Views / joint_view |
template< typename Sequence1 , typename Sequence2 > struct joint_view { // unspecified // ... };
A view into the sequence of elements formed by concatenating Sequence1 and Sequence2 elements.
#include <boost/mpl/joint_view.hpp>
Parameter | Requirement | Description |
---|---|---|
Sequence1, Sequence2 | Forward Sequence | Sequences to create a view on. |
The semantics of an expression are defined only where they differ from, or are not defined in Forward Sequence.
In the following table, v is an instance of joint_view, s1 and s2 are arbitrary Forward Sequences.
Expression | Semantics |
---|---|
joint_view |
A lazy Forward Sequence of all the elements in the
ranges [begin |
size |
The size of v;
size |
typedef joint_view< range_c, range_c > numbers; BOOST_MPL_ASSERT(( equal< numbers, range_c > ));