Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
Checked integral type wraps an integral T and customizes its behavior with the
help of a Hook type. The type wrapped must be one of the predefined integrals
(unqualified), or another instance of Checked.
if(isIntegral!T || is(T == Checked!(U, H), U, H));
Constructor taking a value properly convertible to the underlying type. U
may be either an integral that can be converted to T without a loss, or
another Checked instance whose representation may be in turn converted to
T without a loss.
Defines unary operators +, -, ~, ++, and --. Unary + is not
overridable and always has built-in behavior (returns this). For the
others, if Hook defines hookOpUnary, opUnary forwards to Checked!(typeof(hook.hookOpUnary!op(get)),
Generates a hash for this. If Hook defines hookToHash, the call
immediately returns hook.hookToHash(payload). If Hook does not
implement hookToHash, but it has state, a hash will be generated for
the Hook using the built-in function and it will be xored with the
hash of the payload.