Need a std::numeric_limits<T>::lowest() equivalent
Xavier Bigand via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jan 20 16:03:11 PST 2017
Le 21/01/2017 à 00:50, Nordlöw a écrit :
> 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?
Yes I saw that, but it seems few are missing
std::numeric_limits<T>::lowest() is describe as "A finite value x such
that there is no other finite value y
* where y < x."
I find something equivalent in the documentation.
More information about the Digitalmars-d
mailing list