The OpenD Programming Language

ValueTypeOfNullable

Gets type of

  • .Algebraic.get.2
  • method.

    template ValueTypeOfNullable (
    T : Algebraic!(typeof(null), Types)
    Types...
    ) {}

    Examples

    static assert(is(ValueTypeOfNullable!(const Nullable!(int, string)) == Algebraic!(int, string)));
    static assert(is(ValueTypeOfNullable!(Nullable!()) == Algebraic!()));
    static assert(is(typeof(Nullable!().get()) == Algebraic!()));

    Meta