ZipTuple

Creates a generic tuple comprised of packed generic tuples comprised of elemetns of packed generic tuples packedTuples taken in lockstep.

If stoppingPolicy is StoppingPolicy.longest and a tuple is finished in a lockstep iteration then empty will be taken.

  1. template ZipTuple(StoppingPolicy stoppingPolicy : StoppingPolicy.longest, alias empty, packedTuples...)
  2. template ZipTuple(StoppingPolicy stoppingPolicy : StoppingPolicy.longest, empty, packedTuples...)
    template ZipTuple (
    StoppingPolicy stoppingPolicy : StoppingPolicy.longest
    empty
    packedTuples...
    ) {}
  3. template ZipTuple(StoppingPolicy stoppingPolicy, packedTuples...)
  4. template ZipTuple(packedTuples...)

Members

Aliases

ZipTuple
alias ZipTuple = ZipTupleImpl!(stoppingPolicy, PackedGenericTuple!empty, packedTuples)
Undocumented in source.

Examples

alias packed1 = packedExpressionTuple!(1, 2, 3);
alias packed2 = PackedTypeTuple!(short, int, long);
alias zip = ZipTuple!(packed1, packed2);

static assert(zip[0].equals!(1, short));
static assert(zip[1].equals!(2, int));
static assert(zip[2].equals!(3, long))

Analog of $(STDREF range, zip) for generic tuples except empty value must be explicitly specified for StoppingPolicy.longest.

Meta