isNullType

Checks if type is typeof(null)

template isNullType () {}

Members

Manifest constants

isNullType
enum isNullType;
Undocumented in source.

Parameters

T

type or typeof a variable for null check

Examples

int a;
int* b = null;
UnittestTestStruct c;
void f()
{
}

assertTrue(isNullType!null);

assertFalse(isNullType!a);
assertFalse(isNullType!b);
assertFalse(isNullType!c);
assertFalse(isNullType!f);

Meta