|
1535 | 1535 |
|
1536 | 1536 | \begin{codeblock}
|
1537 | 1537 | namespace std {
|
1538 |
| - using int8_t = @\textit{signed integer type}@; // optional |
1539 |
| - using int16_t = @\textit{signed integer type}@; // optional |
1540 |
| - using int32_t = @\textit{signed integer type}@; // optional |
1541 |
| - using int64_t = @\textit{signed integer type}@; // optional |
| 1538 | + using int8_t = @\textit{signed integer type}@; // optional |
| 1539 | + using int16_t = @\textit{signed integer type}@; // optional |
| 1540 | + using int32_t = @\textit{signed integer type}@; // optional |
| 1541 | + using int64_t = @\textit{signed integer type}@; // optional |
1542 | 1542 |
|
1543 | 1543 | using int_fast8_t = @\textit{signed integer type}@;
|
1544 | 1544 | using int_fast16_t = @\textit{signed integer type}@;
|
|
1551 | 1551 | using int_least64_t = @\textit{signed integer type}@;
|
1552 | 1552 |
|
1553 | 1553 | using intmax_t = @\textit{signed integer type}@;
|
1554 |
| - using intptr_t = @\textit{signed integer type}@; // optional |
| 1554 | + using intptr_t = @\textit{signed integer type}@; // optional |
1555 | 1555 |
|
1556 |
| - using uint8_t = @\textit{unsigned integer type}@; // optional |
1557 |
| - using uint16_t = @\textit{unsigned integer type}@; // optional |
1558 |
| - using uint32_t = @\textit{unsigned integer type}@; // optional |
1559 |
| - using uint64_t = @\textit{unsigned integer type}@; // optional |
| 1556 | + using uint8_t = @\textit{unsigned integer type}@; // optional |
| 1557 | + using uint16_t = @\textit{unsigned integer type}@; // optional |
| 1558 | + using uint32_t = @\textit{unsigned integer type}@; // optional |
| 1559 | + using uint64_t = @\textit{unsigned integer type}@; // optional |
1560 | 1560 |
|
1561 | 1561 | using uint_fast8_t = @\textit{unsigned integer type}@;
|
1562 | 1562 | using uint_fast16_t = @\textit{unsigned integer type}@;
|
|
1569 | 1569 | using uint_least64_t = @\textit{unsigned integer type}@;
|
1570 | 1570 |
|
1571 | 1571 | using uintmax_t = @\textit{unsigned integer type}@;
|
1572 |
| - using uintptr_t = @\textit{unsigned integer type}@; // optional |
| 1572 | + using uintptr_t = @\textit{unsigned integer type}@; // optional |
1573 | 1573 | }
|
1574 |
| -\end{codeblock} |
1575 | 1574 |
|
1576 |
| -\pnum |
1577 |
| -The header also defines numerous macros of the form: |
| 1575 | +#define INT[8, 16, 32, 64]_MIN @\seebelow@ // optional |
| 1576 | +#define INT[8, 16, 32, 64]_MAX @\seebelow@ // optional |
| 1577 | +#define UINT[8, 16, 32, 64]_MAX @\seebelow@ // optional |
1578 | 1578 |
|
1579 |
| -\begin{codeblock} |
1580 |
| - INT_[FAST LEAST]{8 16 32 64}_MIN |
1581 |
| - [U]INT_[FAST LEAST]{8 16 32 64}_MAX |
1582 |
| - INT{MAX PTR}_MIN |
1583 |
| - [U]INT{MAX PTR}_MAX |
1584 |
| - {PTRDIFF SIG_ATOMIC WCHAR WINT}{_MAX _MIN} |
1585 |
| - SIZE_MAX |
1586 |
| -\end{codeblock} |
| 1579 | +#define INT_LEAST[8, 16, 32, 64]_MIN @\seebelow@ |
| 1580 | +#define INT_LEAST[8, 16, 32, 64]_MAX @\seebelow@ |
| 1581 | +#define UINT_LEAST[8, 16, 32, 64]_MAX @\seebelow@ |
1587 | 1582 |
|
1588 |
| -plus function macros of the form: |
| 1583 | +#define INT_FAST[8, 16, 32, 64]_MIN @\seebelow@ |
| 1584 | +#define INT_FAST[8, 16, 32, 64]_MAX @\seebelow@ |
| 1585 | +#define UINT_FAST[8, 16, 32, 64]_MAX @\seebelow@ |
1589 | 1586 |
|
1590 |
| -\begin{codeblock} |
1591 |
| - [U]INT{8 16 32 64 MAX}_C |
| 1587 | +#define INTPTR_MIN @\seebelow@ // optional |
| 1588 | +#define INTPTR_MAX @\seebelow@ // optional |
| 1589 | +#define UINTPTR_MAX @\seebelow@ // optional |
| 1590 | + |
| 1591 | +#define INTMAX_MIN @\seebelow@ |
| 1592 | +#define INTMAX_MAX @\seebelow@ |
| 1593 | +#define UINTMAX_MAX @\seebelow@ |
| 1594 | + |
| 1595 | +#define PTRDIFF_MIN @\seebelow@ |
| 1596 | +#define PTRDIFF_MAX @\seebelow@ |
| 1597 | +#define SIG_ATOMIC_MIN @\seebelow@ |
| 1598 | +#define SIG_ATOMIC_MAX @\seebelow@ |
| 1599 | +#define SIZE_MAX @\seebelow@ |
| 1600 | + |
| 1601 | +#define WCHAR_MIN @\seebelow@ |
| 1602 | +#define WCHAR_MAX @\seebelow@ |
| 1603 | +#define WINT_MIN @\seebelow@ |
| 1604 | +#define WINT_MAX @\seebelow@ |
| 1605 | + |
| 1606 | +#define INT[8, 16, 32, 64]_C(value) @\seebelow@ // optional |
| 1607 | +#define UINT[8, 16, 32, 64]_C(value) @\seebelow@ // optional |
| 1608 | + |
| 1609 | +#define INTMAX_C(value) @\seebelow@ |
| 1610 | +#define UINTMAX_C(value) @\seebelow@ |
1592 | 1611 | \end{codeblock}
|
1593 | 1612 |
|
1594 | 1613 | \pnum
|
|
0 commit comments