Optional

Optional type that is either empty or contains a value of type T

Constructors

this
this(T value)

Creates an Optional with the given value

Members

Functions

get
inout(T) get()
hasValue
bool hasValue(T exp)
isEmpty
bool isEmpty()
isPresent
bool isPresent()

Static functions

create
Optional!T create(T val)

Creates an Optional with the given value

Meta