Nullable

From D Wiki
Revision as of 11:08, 14 February 2018 by D user (talk | contribs) (External link)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

import std.typecons;

Nullable!int maybeIntValue;


External links