![]() |
Home | Libraries | People | FAQ | More |
zip_view presents a view
which iterates over a collection of _sequence_s
in parallel. A zip_view
is constructed from a Sequence
of references to the component _sequence_s.
#include <boost/fusion/sequence/view/zip_view.hpp>
template <typename Sequences> struct zip_view;
|
Parameter |
Description |
Default |
|---|---|---|
|
|
A Forward Sequence of references to other Fusion _sequence_s |
|
Notation
ZVjoint_view type
sSequences
zv1,
zv2ZV
Semantics of an expression is defined only where it differs from, or is not defined in Forward Sequence.
|
Expression |
Semantics |
|---|---|
|
|
Creates a |
|
|
Copy constructs a |
|
|
Assigns to a |
typedefvector<int,int> vec1; typedefvector<char,char> vec2; vec1 v1(1,2); vec2 v2('a','b'); typedefvector<vec1&, vec2&> sequences; std::cout << zip_view<sequences>(sequences(v1, v2)) << std::endl; // ((1 a) (2 b))
| Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias Schwinger |