Difference between revisions of "Nullable"

From D Wiki
Jump to: navigation, search
(Added a basic page for Nullable, to extend later.)
(No difference)

Revision as of 17:26, 14 February 2013

The module std.typecons provides the struct Nullable, which takes a single template argument. This allows for the creation of nullable primitives.

Nullable!int maybeIntValue;