hasNullValue

Is true iff T is a type with a standardized null (zero address) value.

enum hasNullValue (
T
)

Examples

static assert(!hasNullValue!int);
static assert(!hasNullValue!float);
struct S {
	int value;
	static immutable nullValue = typeof(this).init;
}
static assert(hasNullValue!S);

Meta