nullable

Instantiator for Nullable.

  1. auto nullable(T a)
  2. auto nullable(T value)
    nullable
    (
    alias nullValue
    T
    )
    ()
    if (
    is(typeof(nullValue) == T)
    )

Examples

auto x = 3.nullable!(int.max);
assert(is (typeof(x) == Nullable!(int, int.max)));

Meta