Function Optional.opUnary
Applies unary operator to internal value of optional.
auto opUnary(string op, This)();
Returns
- If the optional is some value it returns an optional of some op value
.
auto a = no!(int*);
auto b = *a; // ok
b = 3; // b is an Optional!int because of the deref