<<<<<<< .working ======= >>>>>>> .merge-right.r57125
Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
<<<<<<< .working

joint_view

Description

=======
Description
>>>>>>> .merge-right.r57125

joint_view presents a view which is a concatenation of two sequences.

<<<<<<< .working

Header

=======
Header
>>>>>>> .merge-right.r57125
#include <boost/fusion/view/joint_view.hpp>
#include <boost/fusion/include/joint_view.hpp>
<<<<<<< .working

Synopsis

=======
Synopsis
>>>>>>> .merge-right.r57125
template <typename Sequence1, typename Sequence2>
struct joint_view;
<<<<<<< .working

Template parameters

=======
Template parameters
>>>>>>> .merge-right.r57125

Parameter

Description

Default

Sequence1

A Forward Sequence

Sequence2

A Forward Sequence

<<<<<<< .working

Model of

=======
Model of
>>>>>>> .merge-right.r57125

Notation

JV

A joint_view type

s1

An instance of Sequence1

s2

An instance of Sequence2

jv, jv2

Instances of joint_view

<<<<<<< .working

Expression Semantics

=======
Expression Semantics
>>>>>>> .merge-right.r57125

Semantics of an expression is defined only where it differs from, or is not <<<<<<< .working defined in Forward Sequence. ======= defined in the implemented models. >>>>>>> .merge-right.r57242

Expression

Semantics

JV(s1, s2)

Creates a joint_view given sequences, s1 and s2.

JV(jv)

Copy constructs a joint_view from another joint_view, jv.

jv = jv2

Assigns to a joint_view, jv, from another joint_view, jv2.

<<<<<<< .working

Example

vector<int, char> v1(3, 'x');
vector<std::string, int> v2("hello", 123);
=======
Example
vector<int, char> v1(3, 'x');
vector<std::string, int> v2("hello", 123);
>>>>>>> .merge-right.r57125
joint_view<
    vector<int, char>
  , vector<std::string, int>
> view(v1, v2);
std::cout << view << std::endl;

PrevUpHomeNext