mostNegative

checkedint-aware version of std.traits.mostNegative

template mostNegative (
T
) if (
isNumeric!T
) {
enum mostNegative;
enum mostNegative;
}

Examples

assert(mostNegative!int == int.min);
static assert(is(typeof(mostNegative!int) == int));
assert(mostNegative!(SmartInt!int) == SmartInt!(int).min);
static assert(is(typeof(mostNegative!(SmartInt!int)) == SmartInt!int));

Meta