isNullTestable

Checks if type is null testable

template isNullTestable () {}

Members

Manifest constants

isNullTestable
enum isNullTestable;
Undocumented in source.

Parameters

T

type or typeof a variable

Examples

class Class1
{
}

struct Struct1
{
	void opAssign(int*)
	{
	}
}

assertFalse(isNullTestable!Struct1);
assertTrue(isNullTestable!Class1);
assertTrue(isNullTestable!(int*));

assertFalse(isNullTestable!UnittestTestStruct);
assertFalse(isNullTestable!int);

class Class2
{
	@disable this();
}

assertTrue(isNullTestable!Class2);

Meta