enforce

Enforces a value to be defined.

@trusted
void
enforce
(
T
)
(,
lazy string message = null
)
if ()

Parameters

value T

The value.

message string

A given message when the value is undefined.

Meta