isAggregateType

template isAggregateType (
T
) {}

Members

Static variables

isAggregateType
auto isAggregateType;
Undocumented in source.

Parameters

T

type to check

Return Value

true if T is a struct, class, interface or union

Examples

struct S { int x; }
union U { int x; double y; }

static assert ( isAggregateType!(S));
static assert ( isAggregateType!(U));
static assert (!isAggregateType!(S[2]));

Meta