Skip to content

Commit

Permalink
P2614R2対応 (#1145)
Browse files Browse the repository at this point in the history
  • Loading branch information
yohhoy committed Jun 7, 2023
1 parent 86be6a9 commit 4476acb
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 9 deletions.
2 changes: 1 addition & 1 deletion reference/limits.md
Expand Up @@ -10,5 +10,5 @@
|--------------------------------------------------------|------------------------------|-------|
| [`numeric_limits`](limits/numeric_limits.md) | 算術型の性質(class template) | |
| [`float_round_style`](limits/float_round_style.md) | 浮動小数点数の丸め形式に関する列挙値(enum) | |
| [`float_denorm_style`](limits/float_denorm_style.md) | 非正規数のサポートに関する列挙値(enum) | |
| [`float_denorm_style`](limits/float_denorm_style.md) | 非正規数のサポートに関する列挙値(enum) | C++23で非推奨 |

5 changes: 5 additions & 0 deletions reference/limits/float_denorm_style.md
Expand Up @@ -2,6 +2,7 @@
* limits[meta header]
* std[meta namespace]
* enum[meta id-type]
* cpp23deprecated[meta cpp]

```cpp
namespace std {
Expand All @@ -13,6 +14,8 @@ namespace std {
}
```
この型を返すメンバ変数がC++23にて非推奨化されるため、列挙型も非推奨とされる。
`std::float_denorm_style`列挙型は、非正規化数(Denormal Number)のサポートに関する情報のための列挙値を提供する。
| 列挙値 | 説明 |
Expand All @@ -22,3 +25,5 @@ namespace std {
| `denorm_present` | 値型が非正規化数を許可する |
## 参照
- [P2614R2 Deprecate `numeric_limits::has_denorm`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2614r2.pdf)
6 changes: 3 additions & 3 deletions reference/limits/numeric_limits.md
Expand Up @@ -64,8 +64,8 @@ namespace std {
| [`has_infinity`](numeric_limits/has_infinity.md) | 正の無限表現を持っているかを判定する | |
| [`has_quiet_NaN`](numeric_limits/has_quiet_nan.md) | シグナルを発生させないNaNを持っているかを判定する | |
| [`has_signaling_NaN`](numeric_limits/has_signaling_nan.md) | シグナルを発生させるNaNを持っているかを判定する | |
| [`has_denorm`](numeric_limits/has_denorm.md) | 非正規化数のサポート状況を判定する | |
| [`has_denorm_loss`](numeric_limits/has_denorm_loss.md) | 精度の損失が非正規化数によるものかを判定する | |
| [`has_denorm`](numeric_limits/has_denorm.md) | 非正規化数のサポート状況を判定する | C++23で非推奨 |
| [`has_denorm_loss`](numeric_limits/has_denorm_loss.md) | 精度の損失が非正規化数によるものかを判定する | C++23で非推奨 |
| [`infinity()`](numeric_limits/infinity.md) | 正の無限表現を取得する | |
| [`quiet_NaN()`](numeric_limits/quiet_nan.md) | シグナルを発生させないNaNを取得する | |
| [`signaling_NaN()`](numeric_limits/signaling_nan.md) | シグナルを発生させるNaNを取得する | |
Expand All @@ -81,4 +81,4 @@ namespace std {
## 参照
- [N2114 `long long` Goes to the Library, Revision 1](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2114.html)
- [LWG Issue 559. `numeric_limits<const T>`](http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#559)
- [P2614R2 Deprecate `numeric_limits::has_denorm`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2614r2.pdf)
9 changes: 7 additions & 2 deletions reference/limits/numeric_limits/denorm_min.md
Expand Up @@ -22,7 +22,8 @@ static constexpr T denorm_min() noexcept; // (1) C++11


## 戻り値
最小の正の非正規化数
非正規化数をサポートするならば、最小の正の非正規化数。
そうでなければ、最小の正の正規化数。


## 例外
Expand Down Expand Up @@ -51,7 +52,11 @@ float : 1.4013e-045
double : 4.94066e-324
```

## 参照

## 関連項目
* [`numeric_limits::has_denorm`](has_denorm.md)
* [`numeric_limits::has_denorm_loss`](has_denorm_loss.md)


## 参照
- [P2614R2 Deprecate `numeric_limits::has_denorm`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2614r2.pdf)
6 changes: 3 additions & 3 deletions reference/limits/numeric_limits/has_denorm.md
Expand Up @@ -3,6 +3,7 @@
* std[meta namespace]
* numeric_limits[meta class]
* variable[meta id-type]
* cpp23deprecated[meta cpp]

```cpp
// C++03
Expand Down Expand Up @@ -71,7 +72,6 @@ float : present
double : present
```
## 参照
* [`float_denorm_style`](../float_denorm_style.md)
## 参照
- [P2614R2 Deprecate `numeric_limits::has_denorm`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2614r2.pdf)
3 changes: 3 additions & 0 deletions reference/limits/numeric_limits/has_denorm_loss.md
Expand Up @@ -3,6 +3,7 @@
* std[meta namespace]
* numeric_limits[meta class]
* variable[meta id-type]
* cpp23deprecated[meta cpp]

```cpp
// C++03
Expand Down Expand Up @@ -43,3 +44,5 @@ double : false
```


## 参照
- [P2614R2 Deprecate `numeric_limits::has_denorm`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2614r2.pdf)

0 comments on commit 4476acb

Please sign in to comment.