📄 limits
字号:
static const bool is_signed = __glibcxx_signed (wchar_t); static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static wchar_t epsilon() throw() { return 0; } static wchar_t round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static wchar_t infinity() throw() { return wchar_t(); } static wchar_t quiet_NaN() throw() { return wchar_t(); } static wchar_t signaling_NaN() throw() { return wchar_t(); } static wchar_t denorm_min() throw() { return wchar_t(); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = true; }; /// numeric_limits<short> specialization. template<> struct numeric_limits<short> { static const bool is_specialized = true; static short min() throw() { return SHRT_MIN; } static short max() throw() { return SHRT_MAX; } static const bool is_signed = true; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static short epsilon() throw() { return 0; } static short round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static short infinity() throw() { return short(); } static short quiet_NaN() throw() { return short(); } static short signaling_NaN() throw() { return short(); } static short denorm_min() throw() { return short(); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = true; }; /// numeric_limits<unsigned short> specialization. template<> struct numeric_limits<unsigned short> { static const bool is_specialized = true; static unsigned short min() throw() { return 0; } static unsigned short max() throw() { return USHRT_MAX; } static const bool is_signed = false; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static unsigned short epsilon() throw() { return 0; } static unsigned short round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static unsigned short infinity() throw() { return static_cast<unsigned short>(0); } static unsigned short quiet_NaN() throw() { return static_cast<unsigned short>(0); } static unsigned short signaling_NaN() throw() { return static_cast<unsigned short>(0); } static unsigned short denorm_min() throw() { return static_cast<unsigned short>(0); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = true; }; /// numeric_limits<int> specialization. template<> struct numeric_limits<int> { static const bool is_specialized = true; static int min() throw() { return INT_MIN; } static int max() throw() { return INT_MAX; } static const bool is_signed = true; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static int epsilon() throw() { return 0; } static int round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static int infinity() throw() { return static_cast<int>(0); } static int quiet_NaN() throw() { return static_cast<int>(0); } static int signaling_NaN() throw() { return static_cast<int>(0); } static int denorm_min() throw() { return static_cast<int>(0); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = true; }; /// numeric_limits<unsigned int> specialization. template<> struct numeric_limits<unsigned int> { static const bool is_specialized = true; static unsigned int min() throw() { return 0; } static unsigned int max() throw() { return UINT_MAX; } static const bool is_signed = false; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static unsigned int epsilon() throw() { return 0; } static unsigned int round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static unsigned int infinity() throw() { return static_cast<unsigned int>(0); } static unsigned int quiet_NaN() throw() { return static_cast<unsigned int>(0); } static unsigned int signaling_NaN() throw() { return static_cast<unsigned int>(0); } static unsigned int denorm_min() throw() { return static_cast<unsigned int>(0); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = true; }; /// numeric_limits<long> specialization. template<> struct numeric_limits<long> { static const bool is_specialized = true; static long min() throw() { return LONG_MIN; } static long max() throw() { return LONG_MAX; } static const bool is_signed = true; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static long epsilon() throw() { return 0; } static long round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static long infinity() throw() { return static_cast<long>(0); } static long quiet_NaN() throw() { return static_cast<long>(0); } static long signaling_NaN() throw() { return static_cast<long>(0); } static long denorm_min() throw() { return static_cast<long>(0); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = true; }; /// numeric_limits<unsigned long> specialization. template<> struct numeric_limits<unsigned long> { static const bool is_specialized = true; static unsigned long min() throw() { return 0; } static unsigned long max() throw() { return ULONG_MAX; } static const bool is_signed = false; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static unsigned long epsilon() throw() { return 0; } static unsigned long round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static unsigned long infinity() throw() { return static_cast<unsigned long>(0); } static unsigned long quiet_NaN() throw() { return static_cast<unsigned long>(0); } static unsigned long signaling_NaN() throw() { return static_cast<unsigned long>(0); } static unsigned long denorm_min() throw() { return static_cast<unsigned long>(0); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = true; };/* /// numeric_limits<long long> specialization. template<> struct numeric_limits<long long> { static const bool is_specialized = true; static long long min() throw() { return -__LONG_LONG_MAX__ - 1; } static long long max() throw() { return __LONG_LONG_MAX__; } static const bool is_signed = true; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static long long epsilon() throw() { return 0; } static long long round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static long long infinity() throw() { return static_cast<long long>(0); } static long long quiet_NaN() throw() { return static_cast<long long>(0); } static long long signaling_NaN() throw() { return static_cast<long long>(0); } static long long denorm_min() throw() { return static_cast<long long>(0); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = true; }; /// numeric_limits<unsigned long long> specialization. template<> struct numeric_limits<unsigned long long> { static const bool is_specialized = true; static unsigned long long min() throw() { return 0; } static unsigned long long max() throw() { return __LONG_LONG_MAX__ * 2ULL + 1; } static const bool is_signed = false; static const bool is_integer = true; static const bool is_exact = true; static const int radix = 2; static unsigned long long epsilon() throw() { return 0; } static unsigned long long round_error() throw() { return 0; } static const int min_exponent = 0; static const int min_exponent10 = 0; static const int max_exponent = 0; static const int max_exponent10 = 0; static const bool has_infinity = false; static const bool has_quiet_NaN = false; static const bool has_signaling_NaN = false; static const float_denorm_style has_denorm = denorm_absent; static const bool has_denorm_loss = false; static unsigned long long infinity() throw() { return static_cast<unsigned long long>(0); } static unsigned long long quiet_NaN() throw() { return static_cast<unsigned long long>(0); } static unsigned long long signaling_NaN() throw() { return static_cast<unsigned long long>(0); } static unsigned long long denorm_min() throw() { return static_cast<unsigned long long>(0); } static const bool is_iec559 = false; static const bool is_bounded = true; static const bool is_modulo = true; };*/} // namespace std#undef __glibcxx_signed#endif // _GLIBCXX_NUMERIC_LIMITS
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -