PackedGenericTuple

Creates a packed generic tuple out of a sequence of zero or more types, expressions, or aliases.

Packed version doesn't alias itself to its content, i.e. it doesn't auto-unpack.

Members

Aliases

Tuple
alias Tuple = Args

Use this member of to access its content as a generic tuple.

Types
alias Types = Args

Use this member of to access its content as a typetuple. Defined if Args is a typetuple.

Types
alias Types = Args
Undocumented in source.
expressions
alias expressions = Args

Use this member of to access its content as an expression tuple. Defined if Args is an expression tuple.

expressions
alias expressions = Args
Undocumented in source.

Enums

cmp
eponymoustemplate cmp(A...)

Convenient comparison template. Same as cmpTuple.

equals
eponymoustemplate equals(A...)

Convenient equality check template. Same as equalTuple.

Manifest constants

empty
enum empty;

Detect whether it's empty.

length
enum length;

Its content length.

Examples

t
{
	alias MyPackedTuple = PackedGenericTuple!(long, 3);

	MyPackedTuple.Tuple[0] myVar = MyPackedTuple.Tuple[1]; // same as `long myVar = 3;`

	alias MyTemplate(alias packed) = packed.Tuple[0][];

	// It is passed as a single template alias parameter:
	static assert(is(MyTemplate!MyPackedTuple == long[])

Meta