Expected.value

Returns the expected value if there is one.

With default Abort hook, it asserts when there is no value. It calls hook's onAccessEmptyValue otherwise.

It returns T.init when hook doesn't provide onAccessEmptyValue.

  1. inout(T) value [@property getter]
    struct Expected(T, E = string, Hook = Abort)
    @property ref inout
    static if(!is(T == void))
    static if(!isChecked!Hook)
    inout(T)
    value
    ()
    if (
    !is(E == void) &&
    (
    !is(T == void)
    )
    )
  2. T value [@property getter]

Meta