Optional.get

A more "old-school" version of visit. Provided both to conform style of existing code and avoid delegate bugs in dmd1.

Discouraged by default as more error-prone than visit.

struct Optional(T)
bool
get
(
ref T value
)

Parameters

value T

will be set to content of this if defined, will remain unchanged otherwise

Return: true if this is defined and value was updated.

Meta