|
1631 | 1631 | \indexlibraryglobal{numeric_limits<bool>}% |
1632 | 1632 | \begin{codeblock} |
1633 | 1633 | namespace std { |
1634 | | - template<> class numeric_limits<bool> { |
1635 | | - public: |
1636 | | - static constexpr bool is_specialized = true; |
1637 | | - static constexpr bool min() noexcept { return false; } |
1638 | | - static constexpr bool max() noexcept { return true; } |
1639 | | - static constexpr bool lowest() noexcept { return false; } |
1640 | | - |
1641 | | - static constexpr int digits = 1; |
1642 | | - static constexpr int digits10 = 0; |
1643 | | - static constexpr int max_digits10 = 0; |
1644 | | - |
1645 | | - static constexpr bool is_signed = false; |
1646 | | - static constexpr bool is_integer = true; |
1647 | | - static constexpr bool is_exact = true; |
1648 | | - static constexpr int radix = 2; |
1649 | | - static constexpr bool epsilon() noexcept { return 0; } |
1650 | | - static constexpr bool round_error() noexcept { return 0; } |
1651 | | - |
1652 | | - static constexpr int min_exponent = 0; |
1653 | | - static constexpr int min_exponent10 = 0; |
1654 | | - static constexpr int max_exponent = 0; |
1655 | | - static constexpr int max_exponent10 = 0; |
1656 | | - |
1657 | | - static constexpr bool has_infinity = false; |
1658 | | - static constexpr bool has_quiet_NaN = false; |
1659 | | - static constexpr bool has_signaling_NaN = false; |
1660 | | - static constexpr bool infinity() noexcept { return 0; } |
1661 | | - static constexpr bool quiet_NaN() noexcept { return 0; } |
1662 | | - static constexpr bool signaling_NaN() noexcept { return 0; } |
1663 | | - static constexpr bool denorm_min() noexcept { return 0; } |
1664 | | - |
1665 | | - static constexpr bool is_iec559 = false; |
1666 | | - static constexpr bool is_bounded = true; |
1667 | | - static constexpr bool is_modulo = false; |
1668 | | - |
1669 | | - static constexpr bool traps = false; |
1670 | | - static constexpr bool tinyness_before = false; |
1671 | | - static constexpr float_round_style round_style = round_toward_zero; |
1672 | | - }; |
| 1634 | + template<> class numeric_limits<bool> { |
| 1635 | + public: |
| 1636 | + static constexpr bool is_specialized = true; |
| 1637 | + static constexpr bool min() noexcept { return false; } |
| 1638 | + static constexpr bool max() noexcept { return true; } |
| 1639 | + static constexpr bool lowest() noexcept { return false; } |
| 1640 | + |
| 1641 | + static constexpr int digits = 1; |
| 1642 | + static constexpr int digits10 = 0; |
| 1643 | + static constexpr int max_digits10 = 0; |
| 1644 | + |
| 1645 | + static constexpr bool is_signed = false; |
| 1646 | + static constexpr bool is_integer = true; |
| 1647 | + static constexpr bool is_exact = true; |
| 1648 | + static constexpr int radix = 2; |
| 1649 | + static constexpr bool epsilon() noexcept { return 0; } |
| 1650 | + static constexpr bool round_error() noexcept { return 0; } |
| 1651 | + |
| 1652 | + static constexpr int min_exponent = 0; |
| 1653 | + static constexpr int min_exponent10 = 0; |
| 1654 | + static constexpr int max_exponent = 0; |
| 1655 | + static constexpr int max_exponent10 = 0; |
| 1656 | + |
| 1657 | + static constexpr bool has_infinity = false; |
| 1658 | + static constexpr bool has_quiet_NaN = false; |
| 1659 | + static constexpr bool has_signaling_NaN = false; |
| 1660 | + static constexpr bool infinity() noexcept { return 0; } |
| 1661 | + static constexpr bool quiet_NaN() noexcept { return 0; } |
| 1662 | + static constexpr bool signaling_NaN() noexcept { return 0; } |
| 1663 | + static constexpr bool denorm_min() noexcept { return 0; } |
| 1664 | + |
| 1665 | + static constexpr bool is_iec559 = false; |
| 1666 | + static constexpr bool is_bounded = true; |
| 1667 | + static constexpr bool is_modulo = false; |
| 1668 | + |
| 1669 | + static constexpr bool traps = false; |
| 1670 | + static constexpr bool tinyness_before = false; |
| 1671 | + static constexpr float_round_style round_style = round_toward_zero; |
| 1672 | + }; |
1673 | 1673 | } |
1674 | 1674 | \end{codeblock} |
1675 | 1675 |
|
|
0 commit comments