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

PrevUpHomeNext
<<<<<<< .working

nview

Description

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

nview presents a view which iterates over a given Sequence in a specified order. An nview is constructed from an arbitrary Sequence and a list of indicies specifying the elements to iterate over.

<<<<<<< .working

Header

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

Synopsis

=======
Synopsis
>>>>>>> .merge-right.r57125
template <typename Sequence, typename Indicies>
struct nview;

template <typename Sequence, int I1, int I2 = -1, ...>
typename result_of::nview<Sequence, I1, I2, ...>::type
as_nview(Sequence& s);
<<<<<<< .working

Template parameters

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

Parameter

Description

Default

Sequence

An arbitrary Fusion Forward Sequence

Indicies

A mpl::vector_c<int, ...> holding the indicies defining the required iteration order.

I1, I2, I3...

A list of integers specifying the required iteration order.

INT_MAX for I2, I3...

<<<<<<< .working

Model of


PrevUpHomeNext