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.

struct Expected(T, E = string, Hook = Abort)
@property ref
inout(T)
value
inout
(
)
if (
!is(E == void) &&
(
!is(T == void)
)
)

Meta