Skip to content

Commit f3b4263

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent e840725 commit f3b4263

File tree

4 files changed

+72
-35
lines changed

4 files changed

+72
-35
lines changed

reference/cmath/abs.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,12 @@
204204

205205
<p class="text-right"><small>
206206
最終更新日時(UTC):
207-
<span itemprop="datePublished" content="2025-05-22T08:35:26">
208-
2025年05月22日 08時35分26秒
207+
<span itemprop="datePublished" content="2026-04-03T02:02:19">
208+
2026年04月03日 02時02分19秒
209209
</span>
210210
<br/>
211211
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
212-
<span itemprop="name">Akira Takahashi</span>
212+
<span itemprop="name">teruyamato0731</span>
213213
</span>
214214
が更新
215215
</small></p>
@@ -272,6 +272,10 @@ <h2><a class="cpprefjp-defined-word" data-desc="関数呼び出し式の評価
272272
<h2>備考</h2>
273273
<ul>
274274
<li>$$ f(x) = | x | $$</li>
275+
<li>(6), (7), (8) : 引数の絶対値が、<a class="cpprefjp-defined-word" data-desc="関数呼び出し式の評価結果となるオブジェクト・値">戻り値</a>の型で表現できない場合、<a class="cpprefjp-defined-word" data-desc="未定義の動作。処理系は予期せぬ動作をする可能性がある。要するに動作保証対象外。undefined behavior (UB)。" href="../../implementation-compliance.html#dfn-undefined-behavior">未定義動作</a>を引き起こす。<ul>
276+
<li>一般的な2の補数表現のシステムにおいて、符号付き整数型の最小値(例:<code>int</code>における<code><a href="../climits/int_min.html">INT_MIN</a></code>)の絶対値は、表現できる最大値(<code><a href="../climits/int_max.html">INT_MAX</a></code>)よりも1大きくなってしまうため、この<a class="cpprefjp-defined-word" data-desc="未定義の動作。処理系は予期せぬ動作をする可能性がある。要するに動作保証対象外。undefined behavior (UB)。" href="../../implementation-compliance.html#dfn-undefined-behavior">未定義動作</a>に該当する。</li>
277+
</ul>
278+
</li>
275279
<li>任意の整数型に対する<a class="cpprefjp-defined-word" data-desc="同名の関数を異なる引数・テンプレート・制約などで複数定義すること。または同名の関数の集合">オーバーロード</a>(5)は C++11 で追加されたが、<a href="http://wg21.cmeerw.net/lwg/issue2192" target="_blank">一部の符号なし整数型に対して問題を引き起こす</a>ことから C++17 で削除され、符号付き整数型に対する<a class="cpprefjp-defined-word" data-desc="同名の関数を異なる引数・テンプレート・制約などで複数定義すること。または同名の関数の集合">オーバーロード</a>(6), (7), (8)が追加された</li>
276280
<li>C++23では、(1), (2), (3)が(4)に統合され、<a class="cpprefjp-defined-word" data-desc="&lt;stdfloat&gt;で定義される内部表現の規定された浮動小数点数型" href="../stdfloat.html">拡張浮動小数点数型</a>を含む浮動小数点数型への<a class="cpprefjp-defined-word" data-desc="同名の関数を異なる引数・テンプレート・制約などで複数定義すること。または同名の関数の集合">オーバーロード</a>として定義された</li>
277281
</ul>

reference/cstdlib/abs.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,12 @@
188188

189189
<p class="text-right"><small>
190190
最終更新日時(UTC):
191-
<span itemprop="datePublished" content="2025-05-22T08:35:26">
192-
2025年05月22日 08時35分26秒
191+
<span itemprop="datePublished" content="2026-04-03T02:02:19">
192+
2026年04月03日 02時02分19秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
196-
<span itemprop="name">Akira Takahashi</span>
196+
<span itemprop="name">teruyamato0731</span>
197197
</span>
198198
が更新
199199
</small></p>
@@ -271,6 +271,10 @@ <h2><a class="cpprefjp-defined-word" data-desc="関数呼び出し式の評価
271271
</ul>
272272
<h2>備考</h2>
273273
<ul>
274+
<li>(1), (2), (3), (8), (9) : 引数の絶対値が、<a class="cpprefjp-defined-word" data-desc="関数呼び出し式の評価結果となるオブジェクト・値">戻り値</a>の型で表現できない場合、<a class="cpprefjp-defined-word" data-desc="未定義の動作。処理系は予期せぬ動作をする可能性がある。要するに動作保証対象外。undefined behavior (UB)。" href="../../implementation-compliance.html#dfn-undefined-behavior">未定義動作</a>を引き起こす。<ul>
275+
<li>一般的な2の補数表現のシステムにおいて、符号付き整数型の最小値(例:<code>int</code>における<code><a href="../climits/int_min.html">INT_MIN</a></code>)の絶対値は、表現できる最大値(<code><a href="../climits/int_max.html">INT_MAX</a></code>)よりも1大きくなってしまうため、この<a class="cpprefjp-defined-word" data-desc="未定義の動作。処理系は予期せぬ動作をする可能性がある。要するに動作保証対象外。undefined behavior (UB)。" href="../../implementation-compliance.html#dfn-undefined-behavior">未定義動作</a>に該当する。</li>
276+
</ul>
277+
</li>
274278
<li>パラメータの型<code>X</code>において<code><a href="../type_traits/is_unsigned.html">is_unsigned_v</a>&lt;X&gt;</code><code>true</code>であり、<code>X</code>が整数昇格によって<code>int</code>に変換できない場合、プログラムは<a class="cpprefjp-defined-word" data-desc="プログラムが適格でないこと。コンパイルエラーなどになる" href="../../implementation-compliance.html#dfn-ill-formed">不適格</a>となる<ul>
275279
<li>Cとの互換性のため、<code>int</code>に昇格できる符号なし整数型は許可される</li>
276280
</ul>

rss.xml

Lines changed: 56 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,64 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<title>cpprefjp - C++日本語リファレンス</title>
44
<link href="https://cpprefjp.github.io" />
5-
<updated>2026-04-03T01:08:38.808817</updated>
6-
<id>4389bfd8-9079-4b00-8991-476c204a9582</id>
5+
<updated>2026-04-03T02:06:41.315550</updated>
6+
<id>b798cff4-afcb-4316-95a7-661387207c36</id>
77

88

9+
<entry>
10+
<title>abs -- feat: `std::abs`に表現不可能な値(`INT_MIN`等)を渡した際の未定義動作について追記 (#1600)</title>
11+
<link href="https://cpprefjp.github.io/reference/cmath/abs.html"/>
12+
<id>486647fbec3b34f07974d0139fc98d03b3f964bb:reference/cmath/abs.md</id>
13+
<updated>2026-04-03T11:02:19+09:00</updated>
14+
15+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/cmath/abs.md b/reference/cmath/abs.md
16+
index 12397ef4e..7efe04348 100644
17+
--- a/reference/cmath/abs.md
18+
+++ b/reference/cmath/abs.md
19+
@@ -50,6 +50,8 @@ namespace std {
20+
21+
## 備考
22+
- $$ f(x) = | x | $$
23+
+- (6), (7), (8) : 引数の絶対値が、戻り値の型で表現できない場合、未定義動作を引き起こす。
24+
+ - 一般的な2の補数表現のシステムにおいて、符号付き整数型の最小値(例:`int`における[`INT_MIN`](/reference/climits/int_min.md))の絶対値は、表現できる最大値([`INT_MAX`](/reference/climits/int_max.md))よりも1大きくなってしまうため、この未定義動作に該当する。
25+
- 任意の整数型に対するオーバーロード(5)は C++11 で追加されたが、[一部の符号なし整数型に対して問題を引き起こす](http://wg21.cmeerw.net/lwg/issue2192)ことから C++17 で削除され、符号付き整数型に対するオーバーロード(6), (7), (8)が追加された
26+
- C++23では、(1), (2), (3)が(4)に統合され、拡張浮動小数点数型を含む浮動小数点数型へのオーバーロードとして定義された
27+
28+
&lt;/code&gt;&lt;/pre&gt;</summary>
29+
30+
<author>
31+
<name>teruyamato0731</name>
32+
<email>77840326+teruyamato0731@users.noreply.github.com</email>
33+
</author>
34+
</entry>
35+
36+
<entry>
37+
<title>abs -- feat: `std::abs`に表現不可能な値(`INT_MIN`等)を渡した際の未定義動作について追記 (#1600)</title>
38+
<link href="https://cpprefjp.github.io/reference/cstdlib/abs.html"/>
39+
<id>486647fbec3b34f07974d0139fc98d03b3f964bb:reference/cstdlib/abs.md</id>
40+
<updated>2026-04-03T11:02:19+09:00</updated>
41+
42+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/cstdlib/abs.md b/reference/cstdlib/abs.md
43+
index 3ed633d17..cda9c3f69 100644
44+
--- a/reference/cstdlib/abs.md
45+
+++ b/reference/cstdlib/abs.md
46+
@@ -63,6 +63,8 @@ namespace std {
47+
48+
49+
## 備考
50+
+- (1), (2), (3), (8), (9) : 引数の絶対値が、戻り値の型で表現できない場合、未定義動作を引き起こす。
51+
+ - 一般的な2の補数表現のシステムにおいて、符号付き整数型の最小値(例:`int`における[`INT_MIN`](/reference/climits/int_min.md))の絶対値は、表現できる最大値([`INT_MAX`](/reference/climits/int_max.md))よりも1大きくなってしまうため、この未定義動作に該当する。
52+
- パラメータの型`X`において[`is_unsigned_v`](/reference/type_traits/is_unsigned.md)`&amp;lt;X&amp;gt;`が`true`であり、`X`が整数昇格によって`int`に変換できない場合、プログラムは不適格となる
53+
- Cとの互換性のため、`int`に昇格できる符号なし整数型は許可される
54+
- C++23では、(4), (5), (6)が(7)に統合され、拡張浮動小数点数型を含む浮動小数点数型へのオーバーロードとして定義された
55+
&lt;/code&gt;&lt;/pre&gt;</summary>
56+
57+
<author>
58+
<name>teruyamato0731</name>
59+
<email>77840326+teruyamato0731@users.noreply.github.com</email>
60+
</author>
61+
</entry>
62+
963
<entry>
1064
<title>コンパイラの実装状況 -- C++26: 「モジュール宣言より前での#lineディレクティブの使用を許可する」を追加 (close #1556)</title>
1165
<link href="https://cpprefjp.github.io/implementation-status.html"/>
@@ -6099,29 +6153,4 @@ index 000000000..72fc86986
60996153
</author>
61006154
</entry>
61016155

6102-
<entry>
6103-
<title>FE_TONEAREST -- 参考リンクを追加</title>
6104-
<link href="https://cpprefjp.github.io/reference/cfenv/fe_tonearest.html"/>
6105-
<id>7e4e769bc80a5893daf3a31dca0ec4b8f075d717:reference/cfenv/fe_tonearest.md</id>
6106-
<updated>2026-04-02T09:08:48+09:00</updated>
6107-
6108-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/cfenv/fe_tonearest.md b/reference/cfenv/fe_tonearest.md
6109-
index baf9d47b5..ed41f9894 100644
6110-
--- a/reference/cfenv/fe_tonearest.md
6111-
+++ b/reference/cfenv/fe_tonearest.md
6112-
@@ -77,3 +77,6 @@ int main()
6113-
- [ICC](/implementation.md#icc): ??
6114-
- [Visual C++](/implementation.md#visual_cpp): 2013 [mark verified], 2015 [mark verified]
6115-
- コンパイルオプション`/fp:strict`または`#pragma fenv_access (on)`が必要。さもなくば、正しく動作しないおそれがある。
6116-
+
6117-
+## 参照
6118-
+- [ISO/IEC 60559:2020](https://ja.wikibooks.org/wiki/ISO/IEC_60559:2020)
6119-
&lt;/code&gt;&lt;/pre&gt;</summary>
6120-
6121-
<author>
6122-
<name>KAZOON</name>
6123-
<email>48007342+cycloawaodorin@users.noreply.github.com</email>
6124-
</author>
6125-
</entry>
6126-
61276156
</feed>

sitemap.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9460,7 +9460,7 @@
94609460

94619461
<url>
94629462
<loc>https://cpprefjp.github.io/reference/cmath/abs.html</loc>
9463-
<lastmod>2026-03-05T18:27:18+09:00</lastmod>
9463+
<lastmod>2026-04-03T11:02:19+09:00</lastmod>
94649464
<changefreq>daily</changefreq>
94659465
<priority>0.7</priority>
94669466
</url>
@@ -38839,7 +38839,7 @@
3883938839

3884038840
<url>
3884138841
<loc>https://cpprefjp.github.io/reference/cstdlib/abs.html</loc>
38842-
<lastmod>2026-03-05T18:27:18+09:00</lastmod>
38842+
<lastmod>2026-04-03T11:02:19+09:00</lastmod>
3884338843
<changefreq>daily</changefreq>
3884438844
<priority>0.7</priority>
3884538845
</url>

0 commit comments

Comments
 (0)