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