Skip to content

Commit

Permalink
numeric_limits::is_iec559 : C++23対応 #1022
Browse files Browse the repository at this point in the history
  • Loading branch information
faithandbrave committed Feb 27, 2023
1 parent 1a85749 commit 3607e5a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
11 changes: 6 additions & 5 deletions reference/limits/numeric_limits/is_iec559.md
Expand Up @@ -5,17 +5,18 @@
* variable[meta id-type]

```cpp
// C++03
static const bool is_iec559;

// C++11
static constexpr bool is_iec559;
static const bool is_iec559; // (1) C++03
static constexpr bool is_iec559; // (1) C++11
```

## 概要
浮動小数点数型において、型`T`がIEC 559 (IEEE 754) に準拠しているかを判定する。


## 備考
- C++23 : [`float16_t`](/reference/stdfloat/float16_t.md)[`float32_t`](/reference/stdfloat/float32_t.md)[`float64_t`](/reference/stdfloat/float64_t.md)[`float128_t`](/reference/stdfloat/float128_t.md)が存在する場合、この値は`true`となる


##
```cpp example
#include <iostream>
Expand Down
1 change: 1 addition & 0 deletions reference/stdfloat/float128_t.md
Expand Up @@ -174,6 +174,7 @@ int main() {
- [`std::float32_t`](float32_t.md)
- [`std::float64_t`](float64_t.md)
- [`std::bfloat16_t`](bfloat16_t.md)
- [`std::numeric_limits<T>::is_iec559`](/reference/limits/numeric_limits/is_iec559.md)


## 参照
Expand Down
1 change: 1 addition & 0 deletions reference/stdfloat/float16_t.md
Expand Up @@ -174,6 +174,7 @@ int main() {
- [`std::float64_t`](float64_t.md)
- [`std::float128_t`](float128_t.md)
- [`std::bfloat16_t`](bfloat16_t.md)
- [`std::numeric_limits<T>::is_iec559`](/reference/limits/numeric_limits/is_iec559.md)


## 参照
Expand Down
1 change: 1 addition & 0 deletions reference/stdfloat/float32_t.md
Expand Up @@ -174,6 +174,7 @@ int main() {
- [`std::float64_t`](float64_t.md)
- [`std::float128_t`](float128_t.md)
- [`std::bfloat16_t`](bfloat16_t.md)
- [`std::numeric_limits<T>::is_iec559`](/reference/limits/numeric_limits/is_iec559.md)


## 参照
Expand Down
1 change: 1 addition & 0 deletions reference/stdfloat/float64_t.md
Expand Up @@ -174,6 +174,7 @@ int main() {
- [`std::float32_t`](float32_t.md)
- [`std::float128_t`](float128_t.md)
- [`std::bfloat16_t`](bfloat16_t.md)
- [`std::numeric_limits<T>::is_iec559`](/reference/limits/numeric_limits/is_iec559.md)


## 参照
Expand Down

0 comments on commit 3607e5a

Please sign in to comment.