Back to Arangodb

joint_view

3rdParty/boost/1.78.0/libs/mpl/doc/refmanual/joint-view.html

3.12.9.12.9 KB
Original Source

| Prev Next | Back Along | Up Home | Full TOC | Front Page / Sequences / Views / joint_view |

joint_view

Synopsis

template<
      typename Sequence1
    , typename Sequence2
    >
struct[joint\_view](./joint-view.html){
    //_unspecified_//_..._};

Description

A view into the sequence of elements formed by concatenating Sequence1 and Sequence2 elements.

#include <[boost/mpl/joint\_view.hpp](../../../../boost/mpl/joint_view.hpp)>

Model of

Parameters

ParameterRequirementDescription
Sequence1, Sequence2Forward SequenceSequences to create a view on.

Expression semantics

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.

ExpressionSemantics
[joint\_view](./joint-view.html)<s1,s2>[joint\_view](./joint-view.html)<s1,s2>::type

| A lazy Forward Sequence of all the elements in the ranges [begin<s1>::type, end<s1>::type), [begin<s2>::type, end<s2>::type). | | size<v>::type | The size of v; size<v>::value == size<s1>::value + size<s2>::value; linear complexity; see Forward Sequence. |

Example

typedef[joint\_view](./joint-view.html)<[range\_c](./range-c.html)<int,0,10>
    ,[range\_c](./range-c.html)<int,10,15>
    > numbers;[BOOST\_MPL\_ASSERT](./assert.html)(([equal](./equal.html)< numbers,[range\_c](./range-c.html)<int,0,15> > ));

See also

Sequences, Views, filter_view, transform_view, zip_view, iterator_range

| Prev Next | Back Along | Up Home | Full TOC |

Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |