From b8f374a563eae8107d1aa600beb9c485216a510c Mon Sep 17 00:00:00 2001 From: teruyamato0731 <77840326+teruyamato0731@users.noreply.github.com> Date: Fri, 3 Apr 2026 11:20:50 +0900 Subject: [PATCH 1/6] =?UTF-8?q?fix:=20floating-point-type=E3=81=B8?= =?UTF-8?q?=E3=81=AE=E3=82=AA=E3=83=BC=E3=83=90=E3=83=BC=E3=83=AD=E3=83=BC?= =?UTF-8?q?=E3=83=89=E3=81=8C=E8=AA=A4=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F?= =?UTF-8?q?=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reference/cstdlib/abs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/cstdlib/abs.md b/reference/cstdlib/abs.md index cda9c3f690..5f5183c244 100644 --- a/reference/cstdlib/abs.md +++ b/reference/cstdlib/abs.md @@ -27,8 +27,8 @@ namespace std { long double abs(long double j); // (6) C++03からC++20まで - floating-point-type - abs(floating-point-type j); // (7) C++03からC++20まで + constexpr floating-point-type + abs(floating-point-type j); // (7) C++23 long labs(long j); // (8) C++03 From 2eb66cf40a14a0343d5eb62dcd94d4761e0b597c Mon Sep 17 00:00:00 2001 From: teruyamato0731 <77840326+teruyamato0731@users.noreply.github.com> Date: Fri, 3 Apr 2026 11:25:04 +0900 Subject: [PATCH 2/6] =?UTF-8?q?feat:=20abs=E3=81=AB=E3=81=8A=E3=81=84?= =?UTF-8?q?=E3=81=A6long=20int=20->=20long=E3=81=AB=E7=B5=B1=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reference/cmath/abs.md | 6 +++--- reference/cstdlib/abs.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/reference/cmath/abs.md b/reference/cmath/abs.md index 7efe043487..b0f4ce100a 100644 --- a/reference/cmath/abs.md +++ b/reference/cmath/abs.md @@ -20,8 +20,8 @@ namespace std { int abs(int x); // (6) C++17 constexpr int abs(int x); // (6) C++23 - long abs(long int x); // (7) C++17 - constexpr long abs(long int x); // (7) C++23 + long abs(long x); // (7) C++17 + constexpr long abs(long x); // (7) C++23 long long abs(long long x); // (8) C++17 constexpr long long abs(long long x); // (8) C++23 @@ -38,7 +38,7 @@ namespace std { - (4) : 浮動小数点数型に対するオーバーロード - (5) : 整数型に対するオーバーロード (`double`にキャストして計算される) - (6) : `int`に対するオーバーロード -- (7) : `long int`に対するオーバーロード +- (7) : `long`に対するオーバーロード - (8) : `long long`に対するオーバーロード diff --git a/reference/cstdlib/abs.md b/reference/cstdlib/abs.md index 5f5183c244..b4fd3f7d57 100644 --- a/reference/cstdlib/abs.md +++ b/reference/cstdlib/abs.md @@ -11,9 +11,9 @@ namespace std { abs(int j); // (1) C++23 long - int abs(long j); // (2) C++03 + abs(long j); // (2) C++03 constexpr long - int abs(long j); // (2) C++23 + abs(long j); // (2) C++23 long long abs(long long j); // (3) C++11 From 3289215d23ae803e93500d203346f5977a72c2b5 Mon Sep 17 00:00:00 2001 From: teruyamato0731 <77840326+teruyamato0731@users.noreply.github.com> Date: Fri, 3 Apr 2026 11:35:26 +0900 Subject: [PATCH 3/6] =?UTF-8?q?feat:=20=E3=82=A4=E3=83=B3=E3=83=87?= =?UTF-8?q?=E3=83=B3=E3=83=88=E3=81=AE=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reference/cstdlib/abs.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/reference/cstdlib/abs.md b/reference/cstdlib/abs.md index b4fd3f7d57..4d417a117b 100644 --- a/reference/cstdlib/abs.md +++ b/reference/cstdlib/abs.md @@ -6,19 +6,19 @@ ```cpp namespace std { int - abs(int j); // (1) C++03 + abs(int j); // (1) C++03 constexpr int - abs(int j); // (1) C++23 + abs(int j); // (1) C++23 long - abs(long j); // (2) C++03 + abs(long j); // (2) C++03 constexpr long - abs(long j); // (2) C++23 + abs(long j); // (2) C++23 long long - abs(long long j); // (3) C++11 + abs(long long j); // (3) C++11 constexpr long long - abs(long long j); // (3) C++23 + abs(long long j); // (3) C++23 float abs(float j); // (4) C++03からC++20まで @@ -31,14 +31,14 @@ namespace std { abs(floating-point-type j); // (7) C++23 long - labs(long j); // (8) C++03 + labs(long j); // (8) C++03 constexpr long - labs(long j); // (8) C++23 + labs(long j); // (8) C++23 long long - llabs(long long j); // (9) C++11 + llabs(long long j); // (9) C++11 constexpr long long - llabs(long long j); // (9) C++23 + llabs(long long j); // (9) C++23 } ``` From f8703c0d1764909cf0335b7f40f0b7c66efb07ff Mon Sep 17 00:00:00 2001 From: teruyamato0731 <77840326+teruyamato0731@users.noreply.github.com> Date: Fri, 3 Apr 2026 13:01:34 +0900 Subject: [PATCH 4/6] =?UTF-8?q?feat:=20abs=E9=96=93=E3=81=A7=E9=96=A2?= =?UTF-8?q?=E9=80=A3=E9=A0=85=E7=9B=AE=E3=81=A8=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reference/cmath/abs.md | 5 +++++ reference/cmath/fabs.md | 6 ++++++ reference/cstdlib/abs.md | 5 +++++ 3 files changed, 16 insertions(+) diff --git a/reference/cmath/abs.md b/reference/cmath/abs.md index b0f4ce100a..c9dc836986 100644 --- a/reference/cmath/abs.md +++ b/reference/cmath/abs.md @@ -100,6 +100,11 @@ namespace std { ``` +## 関連項目 +- [`abs`](/reference/cstdlib/abs.md) +- [`fabs`](/reference/cmath/fabs.md) + + ## 参照 - [P0533R9 constexpr for `` and ``](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p0533r9.pdf) - C++23での、一部関数の`constexpr`対応 diff --git a/reference/cmath/fabs.md b/reference/cmath/fabs.md index 80215e8ebb..63e7559058 100644 --- a/reference/cmath/fabs.md +++ b/reference/cmath/fabs.md @@ -131,6 +131,12 @@ namespace std { * is_integral[link ../type_traits/is_integral.md] * enable_if[link ../type_traits/enable_if.md] + +## 関連項目 +- [`abs`](/reference/cmath/abs.md) +- [`abs`](/reference/cstdlib/abs.md) + + ## 参照 - [P0533R9 constexpr for `` and ``](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p0533r9.pdf) - C++23での、一部関数の`constexpr`対応 diff --git a/reference/cstdlib/abs.md b/reference/cstdlib/abs.md index 4d417a117b..d8020fa16d 100644 --- a/reference/cstdlib/abs.md +++ b/reference/cstdlib/abs.md @@ -95,6 +95,11 @@ int main() - GCC 4.6.1 以上 +## 関連項目 +- [`abs`](/reference/cmath/abs.md) +- [`fabs`](/reference/cmath/fabs.md) + + ## 参照 - [P0533R9 constexpr for `` and ``](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p0533r9.pdf) - C++23での、一部関数の`constexpr`対応 From bef90dc662ed392b9e568989286daf0dcb92b6f6 Mon Sep 17 00:00:00 2001 From: teruyamato0731 <77840326+teruyamato0731@users.noreply.github.com> Date: Fri, 3 Apr 2026 13:02:55 +0900 Subject: [PATCH 5/6] =?UTF-8?q?feat:=20=E6=A6=82=E8=A6=81=E3=81=AE?= =?UTF-8?q?=E5=BE=AE=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reference/cstdlib/abs.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/cstdlib/abs.md b/reference/cstdlib/abs.md index d8020fa16d..99826663bd 100644 --- a/reference/cstdlib/abs.md +++ b/reference/cstdlib/abs.md @@ -43,7 +43,7 @@ namespace std { ``` ## 概要 -絶対値を求める。abs は absolute value(絶対値)の略。 +算術型の絶対値を求める。abs は absolute value(絶対値)の略。 - (1) : `int`に対するオーバーロード - (2) : `long`に対するオーバーロード @@ -52,8 +52,8 @@ namespace std { - (5) : `double`に対するオーバーロード - (6) : `long double`に対するオーバーロード - (7) : 浮動小数点数型に対するオーバーロード -- (8) : `long`規定 -- (9) : `long long`規定 +- (8) : `long`型規定 +- (9) : `long long`型規定 ## 戻り値 From cd24fc731a89541123ff837fcefb212a6ea4986e Mon Sep 17 00:00:00 2001 From: teruyamato0731 <77840326+teruyamato0731@users.noreply.github.com> Date: Fri, 3 Apr 2026 16:02:19 +0900 Subject: [PATCH 6/6] =?UTF-8?q?feat:=20=E9=96=A2=E9=80=A3=E9=A0=85?= =?UTF-8?q?=E7=9B=AE=E3=81=AE=E3=83=AA=E3=83=B3=E3=82=AF=E5=85=88=E3=82=92?= =?UTF-8?q?=E3=82=8F=E3=81=8B=E3=82=8A=E3=82=84=E3=81=99=E3=81=8F=E3=81=99?= =?UTF-8?q?=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reference/cmath/abs.md | 2 +- reference/cmath/fabs.md | 4 ++-- reference/cstdlib/abs.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/cmath/abs.md b/reference/cmath/abs.md index c9dc836986..019c59eece 100644 --- a/reference/cmath/abs.md +++ b/reference/cmath/abs.md @@ -101,7 +101,7 @@ namespace std { ## 関連項目 -- [`abs`](/reference/cstdlib/abs.md) +- [`abs - `](/reference/cstdlib/abs.md) - [`fabs`](/reference/cmath/fabs.md) diff --git a/reference/cmath/fabs.md b/reference/cmath/fabs.md index 63e7559058..65f8d5f709 100644 --- a/reference/cmath/fabs.md +++ b/reference/cmath/fabs.md @@ -133,8 +133,8 @@ namespace std { ## 関連項目 -- [`abs`](/reference/cmath/abs.md) -- [`abs`](/reference/cstdlib/abs.md) +- [`abs - `](/reference/cmath/abs.md) +- [`abs - `](/reference/cstdlib/abs.md) ## 参照 diff --git a/reference/cstdlib/abs.md b/reference/cstdlib/abs.md index 99826663bd..cc4fe877de 100644 --- a/reference/cstdlib/abs.md +++ b/reference/cstdlib/abs.md @@ -96,7 +96,7 @@ int main() ## 関連項目 -- [`abs`](/reference/cmath/abs.md) +- [`abs - `](/reference/cmath/abs.md) - [`fabs`](/reference/cmath/fabs.md)