IndexedTuple

Creates a generic tuple comprised of elemetns of packed generic tuple packedSourceTuple reordered according to packed expression tuple packedIndicesTuple. packedIndicesTuple may include only a subset of the elements of packedSourceTuple and may also repeat elements.

template IndexedTuple (
alias packedSourceTuple
alias packedIndicesTuple
) if (
isPackedTuple!packedSourceTuple &&
isPackedTuple!packedIndicesTuple
) {}

Members

Aliases

IndexedTuple
alias IndexedTuple = MapTuple!(Func, packedIndicesTuple.Tuple)
Undocumented in source.

Templates

Func
template Func(A...)
Undocumented in source.

Examples

alias indexed = IndexedTuple!(PackedTypeTuple!(short, int, long, double),
                              packedExpressionTuple!(1, 0, 2, 2));
static assert(is(indexed == TypeTuple!(int, short, long, long)));

Analog of $(STDREF range, indexed) for generic tuples.

Meta