Need a std::numeric_limits<T>::lowest() equivalent
Nordlöw via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jan 20 15:50:49 PST 2017
On Friday, 20 January 2017 at 23:45:38 UTC, Xavier Bigand wrote:
> Using -type.max is close to what I want but for integer int.min
> is different than -int.max.
>
> In c++11 there is std::numeric_limits<T>::lowest() that works
> perfectly.
>
> Can an equivalent property added to integer and floating types?
In D, these are builtin properties doced here:
http://dlang.org/spec/property.html
Is that what you where looking for?
More information about the Digitalmars-d
mailing list