tmp/tmpaib3m01l/{from.md → to.md}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
#### `numeric_limits` members <a id="numeric.limits.members">[[numeric.limits.members]]</a>
|
| 2 |
|
| 3 |
-
Each member function defined in this subclause is signal-safe
|
| 4 |
-
[[
|
| 5 |
|
| 6 |
``` cpp
|
| 7 |
static constexpr T min() noexcept;
|
| 8 |
```
|
| 9 |
|
| 10 |
Minimum finite value.[^3]
|
| 11 |
|
| 12 |
-
For floating types with subnormal numbers, returns the minimum
|
| 13 |
-
normalized value.
|
| 14 |
|
| 15 |
Meaningful for all specializations in which `is_bounded != false`, or
|
| 16 |
`is_bounded == false && is_signed == false`.
|
| 17 |
|
| 18 |
``` cpp
|
|
@@ -88,11 +88,11 @@ Meaningful for all specializations.
|
|
| 88 |
|
| 89 |
``` cpp
|
| 90 |
static constexpr int radix;
|
| 91 |
```
|
| 92 |
|
| 93 |
-
For floating types, specifies the base or radix of the exponent
|
| 94 |
representation (often 2).[^8]
|
| 95 |
|
| 96 |
For integer types, specifies the base of the representation.[^9]
|
| 97 |
|
| 98 |
Meaningful for all specializations.
|
|
@@ -249,11 +249,11 @@ Meaningful for all floating-point types.
|
|
| 249 |
static constexpr bool is_bounded;
|
| 250 |
```
|
| 251 |
|
| 252 |
`true` if the set of values representable by the type is finite.[^25]
|
| 253 |
|
| 254 |
-
[*Note 1*: All fundamental types
|
| 255 |
This member would be `false` for arbitrary precision
|
| 256 |
types. — *end note*]
|
| 257 |
|
| 258 |
Meaningful for all specializations.
|
| 259 |
|
|
@@ -266,22 +266,22 @@ operation involving `+`, `-`, or `*` on values of that type whose result
|
|
| 266 |
would fall outside the range \[`min()`, `max()`\], the value returned
|
| 267 |
differs from the true value by an integer multiple of
|
| 268 |
`max() - min() + 1`.
|
| 269 |
|
| 270 |
[*Example 1*: `is_modulo` is `false` for signed integer
|
| 271 |
-
types
|
| 272 |
-
|
| 273 |
wrap. — *end example*]
|
| 274 |
|
| 275 |
Meaningful for all specializations.
|
| 276 |
|
| 277 |
``` cpp
|
| 278 |
static constexpr bool traps;
|
| 279 |
```
|
| 280 |
|
| 281 |
-
`true` if, at
|
| 282 |
-
would cause an arithmetic operation using that value to trap.[^27]
|
| 283 |
|
| 284 |
Meaningful for all specializations.
|
| 285 |
|
| 286 |
``` cpp
|
| 287 |
static constexpr bool tinyness_before;
|
|
|
|
| 1 |
#### `numeric_limits` members <a id="numeric.limits.members">[[numeric.limits.members]]</a>
|
| 2 |
|
| 3 |
+
Each member function defined in this subclause is signal-safe
|
| 4 |
+
[[support.signal]].
|
| 5 |
|
| 6 |
``` cpp
|
| 7 |
static constexpr T min() noexcept;
|
| 8 |
```
|
| 9 |
|
| 10 |
Minimum finite value.[^3]
|
| 11 |
|
| 12 |
+
For floating-point types with subnormal numbers, returns the minimum
|
| 13 |
+
positive normalized value.
|
| 14 |
|
| 15 |
Meaningful for all specializations in which `is_bounded != false`, or
|
| 16 |
`is_bounded == false && is_signed == false`.
|
| 17 |
|
| 18 |
``` cpp
|
|
|
|
| 88 |
|
| 89 |
``` cpp
|
| 90 |
static constexpr int radix;
|
| 91 |
```
|
| 92 |
|
| 93 |
+
For floating-point types, specifies the base or radix of the exponent
|
| 94 |
representation (often 2).[^8]
|
| 95 |
|
| 96 |
For integer types, specifies the base of the representation.[^9]
|
| 97 |
|
| 98 |
Meaningful for all specializations.
|
|
|
|
| 249 |
static constexpr bool is_bounded;
|
| 250 |
```
|
| 251 |
|
| 252 |
`true` if the set of values representable by the type is finite.[^25]
|
| 253 |
|
| 254 |
+
[*Note 1*: All fundamental types [[basic.fundamental]] are bounded.
|
| 255 |
This member would be `false` for arbitrary precision
|
| 256 |
types. — *end note*]
|
| 257 |
|
| 258 |
Meaningful for all specializations.
|
| 259 |
|
|
|
|
| 266 |
would fall outside the range \[`min()`, `max()`\], the value returned
|
| 267 |
differs from the true value by an integer multiple of
|
| 268 |
`max() - min() + 1`.
|
| 269 |
|
| 270 |
[*Example 1*: `is_modulo` is `false` for signed integer
|
| 271 |
+
types [[basic.fundamental]] unless an implementation, as an extension to
|
| 272 |
+
this document, defines signed integer overflow to
|
| 273 |
wrap. — *end example*]
|
| 274 |
|
| 275 |
Meaningful for all specializations.
|
| 276 |
|
| 277 |
``` cpp
|
| 278 |
static constexpr bool traps;
|
| 279 |
```
|
| 280 |
|
| 281 |
+
`true` if, at the start of the program, there exists a value of the type
|
| 282 |
+
that would cause an arithmetic operation using that value to trap.[^27]
|
| 283 |
|
| 284 |
Meaningful for all specializations.
|
| 285 |
|
| 286 |
``` cpp
|
| 287 |
static constexpr bool tinyness_before;
|