Optional

A simple nullable type, where a boolean flag indicates whether a value is present.

Constructors

this
this(T value)

Constructs an optional with a given value.

Members

Functions

notPresent
bool notPresent()

Determines if a value is not present.

Variables

present
bool present;

Whether the value is present.

value
T value;

The value that's present, if any.

Meta