Nullable.isNull

Check if this is in the null state.

struct Nullable(T, T nullValue)
@property const
bool
isNull
()

Return Value

Type: bool

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

Examples

Nullable!(int, -1) ni;
//Initialized to "null" state
assert(ni.isNull);

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

Meta

Suggestion Box / Bug Report