Standard library header <climits>
From ja.cppreference.net
このヘッダーは元々C標準ライブラリに <limits.h> として存在していました。
このヘッダは type support ライブラリの一部であり、特に C numeric limits interface の一部です。
マクロ
|
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 */