no

Type constructor for an optional having no value of T

no
(
T
)
()

Examples

auto a = no!(int*);
assert(a == none);
assert(*a != 9);
a = new int(9);
assert(*a == 9);
assert(a != none);
a = null;
assert(a == none);

Meta