Checked.min

Defines the minimum and maximum. These values are hookable by defining Hook.min and/or Hook.max.

struct Checked(T, Hook = Abort)
enum Checked!(T, Hook) min;

Examples

assert(Checked!short.min == -32768);
assert(Checked!(short, WithNaN).min == -32767);
assert(Checked!(uint, WithNaN).max == uint.max - 1);

Meta

Suggestion Box / Bug Report