Optional.opEquals

Check whether optional is null or not.

  1. bool opEquals(typeof(null) term)
    struct Optional(T)
    inout pure nothrow @nogc @safe
    bool
    opEquals
    (
    inout typeof(null) term
    )
  2. bool opEquals(T value)

Parameters

term typeof(null)

null term to accept.

Return Value

Type: bool

true if null, false otherwise

Meta