Optional.opUnary

Applies unary operator to internal value of optional.

struct Optional(T)
opUnary
(
string op
this This
)
()

Return Value

Type: auto

- 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

Meta