|
1347 | 1347 |
|
1348 | 1348 | \begin{codeblock}
|
1349 | 1349 | namespace std {
|
1350 |
| - using int8_t = @\textit{signed integer type}@; // optional |
1351 |
| - using int16_t = @\textit{signed integer type}@; // optional |
1352 |
| - using int32_t = @\textit{signed integer type}@; // optional |
1353 |
| - using int64_t = @\textit{signed integer type}@; // optional |
| 1350 | + using int8_t = @\textit{signed integer type}@; // optional |
| 1351 | + using int16_t = @\textit{signed integer type}@; // optional |
| 1352 | + using int32_t = @\textit{signed integer type}@; // optional |
| 1353 | + using int64_t = @\textit{signed integer type}@; // optional |
1354 | 1354 |
|
1355 | 1355 | using int_fast8_t = @\textit{signed integer type}@;
|
1356 | 1356 | using int_fast16_t = @\textit{signed integer type}@;
|
|
1363 | 1363 | using int_least64_t = @\textit{signed integer type}@;
|
1364 | 1364 |
|
1365 | 1365 | using intmax_t = @\textit{signed integer type}@;
|
1366 |
| - using intptr_t = @\textit{signed integer type}@; // optional |
| 1366 | + using intptr_t = @\textit{signed integer type}@; // optional |
1367 | 1367 |
|
1368 |
| - using uint8_t = @\textit{unsigned integer type}@; // optional |
1369 |
| - using uint16_t = @\textit{unsigned integer type}@; // optional |
1370 |
| - using uint32_t = @\textit{unsigned integer type}@; // optional |
1371 |
| - using uint64_t = @\textit{unsigned integer type}@; // optional |
| 1368 | + using uint8_t = @\textit{unsigned integer type}@; // optional |
| 1369 | + using uint16_t = @\textit{unsigned integer type}@; // optional |
| 1370 | + using uint32_t = @\textit{unsigned integer type}@; // optional |
| 1371 | + using uint64_t = @\textit{unsigned integer type}@; // optional |
1372 | 1372 |
|
1373 | 1373 | using uint_fast8_t = @\textit{unsigned integer type}@;
|
1374 | 1374 | using uint_fast16_t = @\textit{unsigned integer type}@;
|
|
1381 | 1381 | using uint_least64_t = @\textit{unsigned integer type}@;
|
1382 | 1382 |
|
1383 | 1383 | using uintmax_t = @\textit{unsigned integer type}@;
|
1384 |
| - using uintptr_t = @\textit{unsigned integer type}@; // optional |
| 1384 | + using uintptr_t = @\textit{unsigned integer type}@; // optional |
1385 | 1385 | }
|
1386 |
| -\end{codeblock} |
1387 | 1386 |
|
1388 |
| -\pnum |
1389 |
| -The header also defines numerous macros of the form: |
| 1387 | +#define INT[8, 16, 32, 64]_MIN @\seebelow@ // optional |
| 1388 | +#define INT[8, 16, 32, 64]_MAX @\seebelow@ // optional |
| 1389 | +#define UINT[8, 16, 32, 64]_MAX @\seebelow@ // optional |
1390 | 1390 |
|
1391 |
| -\begin{codeblock} |
1392 |
| - INT_[FAST LEAST]{8 16 32 64}_MIN |
1393 |
| - [U]INT_[FAST LEAST]{8 16 32 64}_MAX |
1394 |
| - INT{MAX PTR}_MIN |
1395 |
| - [U]INT{MAX PTR}_MAX |
1396 |
| - {PTRDIFF SIG_ATOMIC WCHAR WINT}{_MAX _MIN} |
1397 |
| - SIZE_MAX |
1398 |
| -\end{codeblock} |
| 1391 | +#define INT_LEAST[8, 16, 32, 64]_MIN @\seebelow@ |
| 1392 | +#define INT_LEAST[8, 16, 32, 64]_MAX @\seebelow@ |
| 1393 | +#define UINT_LEAST[8, 16, 32, 64]_MAX @\seebelow@ |
1399 | 1394 |
|
1400 |
| -plus function macros of the form: |
| 1395 | +#define INT_FAST[8, 16, 32, 64]_MIN @\seebelow@ |
| 1396 | +#define INT_FAST[8, 16, 32, 64]_MAX @\seebelow@ |
| 1397 | +#define UINT_FAST[8, 16, 32, 64]_MAX @\seebelow@ |
1401 | 1398 |
|
1402 |
| -\begin{codeblock} |
1403 |
| - [U]INT{8 16 32 64 MAX}_C |
| 1399 | +#define INTPTR_MIN @\seebelow@ // optional |
| 1400 | +#define INTPTR_MAX @\seebelow@ // optional |
| 1401 | +#define UINTPTR_MAX @\seebelow@ // optional |
| 1402 | + |
| 1403 | +#define INTMAX_MIN @\seebelow@ |
| 1404 | +#define INTMAX_MAX @\seebelow@ |
| 1405 | +#define UINTMAX_MAX @\seebelow@ |
| 1406 | + |
| 1407 | +#define PTRDIFF_MIN @\seebelow@ |
| 1408 | +#define PTRDIFF_MAX @\seebelow@ |
| 1409 | +#define SIG_ATOMIC_MIN @\seebelow@ |
| 1410 | +#define SIG_ATOMIC_MAX @\seebelow@ |
| 1411 | +#define SIZE_MAX @\seebelow@ |
| 1412 | + |
| 1413 | +#define WCHAR_MIN @\seebelow@ |
| 1414 | +#define WCHAR_MAX @\seebelow@ |
| 1415 | +#define WINT_MIN @\seebelow@ |
| 1416 | +#define WINT_MAX @\seebelow@ |
| 1417 | + |
| 1418 | +#define INT[8, 16, 32, 64]_C(value) @\seebelow@ // optional |
| 1419 | +#define UINT[8, 16, 32, 64]_C(value) @\seebelow@ // optional |
| 1420 | + |
| 1421 | +#define INTMAX_C(value) @\seebelow@ |
| 1422 | +#define UINTMAX_C(value) @\seebelow@ |
1404 | 1423 | \end{codeblock}
|
1405 | 1424 |
|
1406 | 1425 | \pnum
|
|
0 commit comments