The OpenD Programming Language

isTuple

Returns true if and only if T is an instance of std.typecons.Tuple.

enum isTuple (
T
)

Parameters

T

The type to check.

Return Value

true if T is a Tuple type, false otherwise.

Examples

static assert(isTuple!(Tuple!()));
static assert(isTuple!(Tuple!(int)));
static assert(isTuple!(Tuple!(int, real, string)));
static assert(isTuple!(Tuple!(int, "x", real, "y")));
static assert(isTuple!(Tuple!(int, Tuple!(real), string)));

Meta