isReferenceType

template isReferenceType (
T
) {}

Members

Static variables

isReferenceType
auto isReferenceType;
Undocumented in source.

Parameters

T

type to check

Return Value

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

Examples

struct S { }
class C { }
interface I { }

static assert (!isReferenceType!(S));
static assert ( isReferenceType!(S*));
static assert ( isReferenceType!(S[]));
static assert ( isReferenceType!(C));
static assert ( isReferenceType!(I));
static assert ( isReferenceType!(S[C]));
static assert ( isReferenceType!(void function(int)));

static void foo ( ) { }
static assert (!isReferenceType!(typeof(foo)));

Meta