Nullable.isNull

Check if this is in the null state.

struct Nullable(T)
@property const @safe pure nothrow
bool
isNull
()

Return Value

Type: bool

true iff this is in the null state, otherwise false.

Examples

Nullable!int ni;
assert(ni.isNull);

ni = 0;
assert(!ni.isNull);

Meta