numeric.int.limits


template <typename T>
class limits §

Numeric limit constants for integer types

Callbacks and Fields

  • const bool is_signed = (cast<T>(-(1)) < 0) §
    

    Indicates whether the type is signed

  • const T min = limits::is_signed ? cast<T>((1 << (bitsizeof(T) - 1))) : 0 §
    

    Smallest value of the type

  • const T max = cast<T>((limits::min - 1)) §
    

    Largest value of the type