| 
    cxxomfort
    rel.20210622
    
   Simple backports for C++ - http://ryan.gulix.cl/fossil.cgi/cxxomfort/ 
   | 
 
An extension to numeric_limits that deals specifically with integer-like types.  
 More...
An extension to numeric_limits that deals specifically with integer-like types. 
integral_limits provides the following new members:
const_min - minimum value as a value (min is constexpr function in C++>=11).const_max - maximum value as a value (max is constexpr function in C++>=11).digits_base<N> - the total number of digits required to represent any value in the given base.Pending members :
narrower_type - an alias to the next smaller integral type of the same signedness.wider_type - an alias to the next larger integral type of the same signedness.lo_mask - an integral value that can be AND-ed with this type to keep only the lower bits.hi_mask - an integral value that can be AND-ed with this type to keep only the higher bits.cxxomfort provides specializations of the new integral_limits for all the types that are defined as integral. The list explicitly includes:
short, int, long, long long in their signed and unsigned variants. 
 1.8.13