|
1356 | 1356 |
|
1357 | 1357 | \begin{codeblock}
|
1358 | 1358 | namespace std {
|
1359 |
| - using int8_t = @\textit{signed integer type}@; // optional |
1360 |
| - using int16_t = @\textit{signed integer type}@; // optional |
1361 |
| - using int32_t = @\textit{signed integer type}@; // optional |
1362 |
| - using int64_t = @\textit{signed integer type}@; // optional |
| 1359 | + using int8_t = @\textit{signed integer type}@; // optional |
| 1360 | + using int16_t = @\textit{signed integer type}@; // optional |
| 1361 | + using int32_t = @\textit{signed integer type}@; // optional |
| 1362 | + using int64_t = @\textit{signed integer type}@; // optional |
1363 | 1363 |
|
1364 | 1364 | using int_fast8_t = @\textit{signed integer type}@;
|
1365 | 1365 | using int_fast16_t = @\textit{signed integer type}@;
|
|
1372 | 1372 | using int_least64_t = @\textit{signed integer type}@;
|
1373 | 1373 |
|
1374 | 1374 | using intmax_t = @\textit{signed integer type}@;
|
1375 |
| - using intptr_t = @\textit{signed integer type}@; // optional |
| 1375 | + using intptr_t = @\textit{signed integer type}@; // optional |
1376 | 1376 |
|
1377 |
| - using uint8_t = @\textit{unsigned integer type}@; // optional |
1378 |
| - using uint16_t = @\textit{unsigned integer type}@; // optional |
1379 |
| - using uint32_t = @\textit{unsigned integer type}@; // optional |
1380 |
| - using uint64_t = @\textit{unsigned integer type}@; // optional |
| 1377 | + using uint8_t = @\textit{unsigned integer type}@; // optional |
| 1378 | + using uint16_t = @\textit{unsigned integer type}@; // optional |
| 1379 | + using uint32_t = @\textit{unsigned integer type}@; // optional |
| 1380 | + using uint64_t = @\textit{unsigned integer type}@; // optional |
1381 | 1381 |
|
1382 | 1382 | using uint_fast8_t = @\textit{unsigned integer type}@;
|
1383 | 1383 | using uint_fast16_t = @\textit{unsigned integer type}@;
|
|
1390 | 1390 | using uint_least64_t = @\textit{unsigned integer type}@;
|
1391 | 1391 |
|
1392 | 1392 | using uintmax_t = @\textit{unsigned integer type}@;
|
1393 |
| - using uintptr_t = @\textit{unsigned integer type}@; // optional |
| 1393 | + using uintptr_t = @\textit{unsigned integer type}@; // optional |
1394 | 1394 | }
|
1395 |
| -\end{codeblock} |
1396 | 1395 |
|
1397 |
| -\pnum |
1398 |
| -The header also defines numerous macros of the form: |
| 1396 | +#define INT[8, 16, 32, 64]_MIN @\seebelow@ // optional |
| 1397 | +#define INT[8, 16, 32, 64]_MAX @\seebelow@ // optional |
| 1398 | +#define UINT[8, 16, 32, 64]_MAX @\seebelow@ // optional |
1399 | 1399 |
|
1400 |
| -\begin{codeblock} |
1401 |
| - INT_[FAST LEAST]{8 16 32 64}_MIN |
1402 |
| - [U]INT_[FAST LEAST]{8 16 32 64}_MAX |
1403 |
| - INT{MAX PTR}_MIN |
1404 |
| - [U]INT{MAX PTR}_MAX |
1405 |
| - {PTRDIFF SIG_ATOMIC WCHAR WINT}{_MAX _MIN} |
1406 |
| - SIZE_MAX |
1407 |
| -\end{codeblock} |
| 1400 | +#define INT_LEAST[8, 16, 32, 64]_MIN @\seebelow@ |
| 1401 | +#define INT_LEAST[8, 16, 32, 64]_MAX @\seebelow@ |
| 1402 | +#define UINT_LEAST[8, 16, 32, 64]_MAX @\seebelow@ |
1408 | 1403 |
|
1409 |
| -plus function macros of the form: |
| 1404 | +#define INT_FAST[8, 16, 32, 64]_MIN @\seebelow@ |
| 1405 | +#define INT_FAST[8, 16, 32, 64]_MAX @\seebelow@ |
| 1406 | +#define UINT_FAST[8, 16, 32, 64]_MAX @\seebelow@ |
1410 | 1407 |
|
1411 |
| -\begin{codeblock} |
1412 |
| - [U]INT{8 16 32 64 MAX}_C |
| 1408 | +#define INTPTR_MIN @\seebelow@ // optional |
| 1409 | +#define INTPTR_MAX @\seebelow@ // optional |
| 1410 | +#define UINTPTR_MAX @\seebelow@ // optional |
| 1411 | + |
| 1412 | +#define INTMAX_MIN @\seebelow@ |
| 1413 | +#define INTMAX_MAX @\seebelow@ |
| 1414 | +#define UINTMAX_MAX @\seebelow@ |
| 1415 | + |
| 1416 | +#define PTRDIFF_MIN @\seebelow@ |
| 1417 | +#define PTRDIFF_MAX @\seebelow@ |
| 1418 | +#define SIG_ATOMIC_MIN @\seebelow@ |
| 1419 | +#define SIG_ATOMIC_MAX @\seebelow@ |
| 1420 | +#define SIZE_MAX @\seebelow@ |
| 1421 | + |
| 1422 | +#define WCHAR_MIN @\seebelow@ |
| 1423 | +#define WCHAR_MAX @\seebelow@ |
| 1424 | +#define WINT_MIN @\seebelow@ |
| 1425 | +#define WINT_MAX @\seebelow@ |
| 1426 | + |
| 1427 | +#define INT[8, 16, 32, 64]_C(value) @\seebelow@ // optional |
| 1428 | +#define UINT[8, 16, 32, 64]_C(value) @\seebelow@ // optional |
| 1429 | + |
| 1430 | +#define INTMAX_C(value) @\seebelow@ |
| 1431 | +#define UINTMAX_C(value) @\seebelow@ |
1413 | 1432 | \end{codeblock}
|
1414 | 1433 |
|
1415 | 1434 | \pnum
|
|
0 commit comments