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