Lumiera  0.pre.03
»edit your freedom«
iter-zip.hpp File Reference

Go to the source code of this file.

Description

Iterator builder to combine several iterables into a tuple sequence.

Adaptation is based on the capabilities of IterExplorer, and the result will again be a »Lumiera Forward Iterator« and an IterExplorer pipeline builder. Depending on the source sequences, references may be exposed. Moreover, a variant izip() is provided where the result tuple is prefixed with a counter sequence, allowing to perform iterator with counter style evaluations.

See also
IterZip_test
iter-explorer.hpp

Definition in file iter-zip.hpp.

#include "lib/iter-adapter.hpp"
#include "lib/iter-explorer.hpp"
#include "lib/meta/tuple-helper.hpp"
#include <utility>

Classes

class  ProductCore< ITUP >
 Building block for a tupeled-iterator. More...
 

Functions

template<typename... ITS>
auto buildIterTuple (ITS &&...iters)
 construction-helper: apply IterExplorer builder packaged tuple
 
template<class... ITS>
auto izip (ITS &&...iters)
 tuple-combining iterator prefixed by index sequence
 
template<class... ITS>
auto zip (ITS &&...iters)
 Build a tuple-combining iterator builder. More...
 

Namespaces

 lib
 Implementation namespace for support and library code.