Nullable

From D Wiki
Revision as of 17:26, 14 February 2013 by W0rp (talk | contribs) (Added a basic page for Nullable, to extend later.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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;