Standard library header <climits>
From ru.cppreference.net
Этот заголовочный файл изначально находился в стандартной библиотеке C как <limits.h> .
Этот заголовок является частью библиотеки поддержки типов , в частности он входит в интерфейс числовых ограничений C .
Макросы
|
CHAR_BIT
|
битовая ширина байта
(макроконстанта) |
|
MB_LEN_MAX
|
максимальное количество байт в многобайтовом символе
(макроконстанта) |
|
CHAR_MIN
|
минимальное значение
char
(макроконстанта) |
|
CHAR_MAX
|
максимальное значение
char
(макроконстанта) |
|
SCHAR_MIN
SHRT_MIN
INT_MIN
LONG_MIN
LLONG_MIN
(C++11)
|
минимальное значение
signed
char
,
short
,
int
,
long
и
long
long
соответственно
(макроконстанта) |
|
SCHAR_MAX
SHRT_MAX
INT_MAX
LONG_MAX
LLONG_MAX
(C++11)
|
максимальное значение
signed
char
,
short
,
int
,
long
и
long
long
соответственно
(макроконстанта) |
|
UCHAR_MAX
USHRT_MAX
UINT_MAX
ULONG_MAX
ULLONG_MAX
(C++11)
|
максимальное значение
unsigned
char
,
unsigned
short
,
unsigned
int
,
unsigned long и unsigned long long соответственно (макроконстанта) |
Краткий обзор
// all freestanding
#define BOOL_WIDTH /* see description */
#define CHAR_BIT /* see description */
#define CHAR_WIDTH /* see description */
#define SCHAR_WIDTH /* see description */
#define UCHAR_WIDTH /* see description */
#define USHRT_WIDTH /* see description */
#define SHRT_WIDTH /* see description */
#define UINT_WIDTH /* see description */
#define INT_WIDTH /* see description */
#define ULONG_WIDTH /* see description */
#define LONG_WIDTH /* see description */
#define ULLONG_WIDTH /* see description */
#define LLONG_WIDTH /* see description */
#define SCHAR_MIN /* see description */
#define SCHAR_MAX /* see description */
#define UCHAR_MAX /* see description */
#define CHAR_MIN /* see description */
#define CHAR_MAX /* see description */
#define MB_LEN_MAX /* see description */
#define SHRT_MIN /* see description */
#define SHRT_MAX /* see description */
#define USHRT_MAX /* see description */
#define INT_MIN /* see description */
#define INT_MAX /* see description */
#define UINT_MAX /* see description */
#define LONG_MIN /* see description */
#define LONG_MAX /* see description */
#define ULONG_MAX /* see description */
#define LLONG_MIN /* see description */
#define LLONG_MAX /* see description */
#define ULLONG_MAX /* see description */