Skip to content

Commit 46dca92

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 2602118 commit 46dca92

105 files changed

Lines changed: 36220 additions & 2400 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lang/cpp26.html

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@
176176

177177
<p class="text-right"><small>
178178
最終更新日時(UTC):
179-
<span itemprop="datePublished" content="2026-05-29T03:47:38">
180-
2026年05月29日 03時47分38秒
179+
<span itemprop="datePublished" content="2026-06-08T11:56:08">
180+
2026年06月08日 11時56分08秒
181181
</span>
182182
<br/>
183183
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -1068,7 +1068,20 @@ <h3>機能の削除</h3>
10681068
</ul>
10691069
<h2>取り決め</h2>
10701070
<ul>
1071-
<li>C言語の参照をC17からC23に更新</li>
1071+
<li>C言語の参照をC17からC23に更新。これにともない、Cライブラリ由来のヘッダに以下の変更が入った<ul>
1072+
<li><code><a href="../reference/cstdlib.html">&lt;cstdlib&gt;</a></code>: <code><a href="../reference/cstdlib/free_sized.html">free_sized()</a></code><code><a href="../reference/cstdlib/free_aligned_sized.html">free_aligned_sized()</a></code><code><a href="../reference/cstdlib/memalignment.html">memalignment()</a></code><code><a href="../reference/cstdlib/strfromf.html">strfromf()</a></code><code><a href="../reference/cstdlib/strfromd.html">strfromd()</a></code><code><a href="../reference/cstdlib/strfroml.html">strfroml()</a></code>を追加。<code><a href="../reference/cstdlib/bsearch.html">bsearch()</a></code><code>const</code><a class="cpprefjp-defined-word" data-desc="同名の関数を異なる引数・テンプレート・制約などで複数定義すること。または同名の関数の集合">オーバーロード</a>を追加。<code><a href="../reference/cstdlib/realloc.html">realloc()</a></code>にサイズ<code>0</code>を渡した場合が<a class="cpprefjp-defined-word" data-desc="エラー性の動作。未定義動作ではないが、誤ったプログラムの結果とされる動作。erroneous behavior (EB)。処理系によって診断や異常終了を実行することが許可されるが、処理が続行する場合もある" href="../implementation-compliance.html#dfn-erroneous-behavior">エラー性動作</a>となった</li>
1073+
<li><code><a href="../reference/ctime.html">&lt;ctime&gt;</a></code>: <code><a href="../reference/ctime/timespec_getres.html">timespec_getres()</a></code><code>timegm()</code><code>gmtime_r()</code><code>localtime_r()</code>と、<code>TIME_MONOTONIC</code><code>TIME_ACTIVE</code><code>TIME_THREAD_ACTIVE</code><code>__STDC_VERSION_TIME_H__</code>を追加。<code>asctime()</code><code>ctime()</code>を非推奨化</li>
1074+
<li><code><a href="../reference/cmath.html">&lt;cmath&gt;</a></code>: <code><a href="../reference/cmath/nextup.html">nextup()</a></code><code><a href="../reference/cmath/nextdown.html">nextdown()</a></code>を追加</li>
1075+
<li><code><a href="../reference/cstdio.html">&lt;cstdio&gt;</a></code>: <code>_PRINTF_NAN_LEN_MAX</code><code>__STDC_VERSION_STDIO_H__</code>を追加</li>
1076+
<li><code><a href="../reference/cinttypes.html">&lt;cinttypes&gt;</a></code>: 2進数用の書式指定マクロ (<code>PRIb</code><em>N</em><code>SCNb</code><em>N</em>等) と<code>__STDC_VERSION_INTTYPES_H__</code>を追加</li>
1077+
<li><code><a href="../reference/cfloat.html">&lt;cfloat&gt;</a></code>: <code><a href="../reference/cmath/infinity.html">INFINITY</a></code><code><a href="../reference/cmath/nan.html">NAN</a></code><code><a href="../reference/cfloat/flt_snan.html">FLT_SNAN</a></code><code><a href="../reference/cfloat/dbl_snan.html">DBL_SNAN</a></code><code><a href="../reference/cfloat/ldbl_snan.html">LDBL_SNAN</a></code><code>__STDC_VERSION_FLOAT_H__</code>を追加。<code><a href="../reference/cfloat/decimal_dig.html">DECIMAL_DIG</a></code>を非推奨化し、<code><a href="../reference/cfloat/flt_has_subnorm.html">FLT_HAS_SUBNORM</a></code><code><a href="../reference/cfloat/dbl_has_subnorm.html">DBL_HAS_SUBNORM</a></code><code><a href="../reference/cfloat/ldbl_has_subnorm.html">LDBL_HAS_SUBNORM</a></code>を廃止予定 (obsolescent) とした</li>
1078+
<li><code><a href="../reference/climits.html">&lt;climits&gt;</a></code>: 各整数型の幅 (ビット数) を表す<code><a href="../reference/climits/bool_width.html">BOOL_WIDTH</a></code>等のマクロを追加</li>
1079+
<li><code><a href="../reference/cstdint.html">&lt;cstdint&gt;</a></code>: 各整数型の幅 (ビット数) を表す<code><a href="../reference/cstdint/int8_width.html">INT8_WIDTH</a></code>等のマクロと、<code>__STDC_VERSION_STDINT_H__</code>を追加</li>
1080+
<li><code><a href="../reference/cstring.html">&lt;cstring&gt;</a></code>: <code>memccpy()</code><code>strdup()</code><code>strndup()</code><code>memset_explicit()</code>を追加</li>
1081+
<li><code><a href="../reference/cuchar.html">&lt;cuchar&gt;</a></code>: <code>mbrtoc8()</code><code>c8rtomb()</code><code>__STDC_VERSION_UCHAR_H__</code>を追加</li>
1082+
<li><code><a href="../reference/cstddef.html">&lt;cstddef&gt;</a></code>: <code>unreachable</code>マクロおよび<code>__STDC_VERSION_STDDEF_H__</code>は定義しないことを明記</li>
1083+
</ul>
1084+
</li>
10721085
</ul></div>
10731086

10741087
</div>

reference.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@
164164

165165
<p class="text-right"><small>
166166
最終更新日時(UTC):
167-
<span itemprop="datePublished" content="2026-05-07T02:42:33">
168-
2026年05月07日 02時42分33秒
167+
<span itemprop="datePublished" content="2026-06-08T11:56:08">
168+
2026年06月08日 11時56分08秒
169169
</span>
170170
<br/>
171171
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -924,7 +924,7 @@ <h2><a href="#clib-facilities" id="clib-facilities">C言語互換ライブラリ
924924
<td></td>
925925
</tr>
926926
<tr>
927-
<td><code>&lt;cinttypes&gt;</code></td>
927+
<td><code><a href="reference/cinttypes.html">&lt;cinttypes&gt;</a></code></td>
928928
<td>固定精度整数のための書式指定マクロ</td>
929929
<td>C++11 (C99)</td>
930930
</tr>
@@ -1019,7 +1019,7 @@ <h2><a href="#clib-facilities" id="clib-facilities">C言語互換ライブラリ
10191019
<td></td>
10201020
</tr>
10211021
<tr>
1022-
<td><code>&lt;cuchar&gt;</code></td>
1022+
<td><code><a href="reference/cuchar.html">&lt;cuchar&gt;</a></code></td>
10231023
<td>ユニコード文字型</td>
10241024
<td>C++11 (C11)</td>
10251025
</tr>

reference/cfloat.html

Lines changed: 65 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,12 @@
192192

193193
<p class="text-right"><small>
194194
最終更新日時(UTC):
195-
<span itemprop="datePublished" content="2024-11-20T12:15:43">
196-
2024年11月20日 12時15分43秒
195+
<span itemprop="datePublished" content="2026-06-08T11:56:08">
196+
2026年06月08日 11時56分08秒
197197
</span>
198198
<br/>
199199
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
200-
<span itemprop="name">Koichi Murase</span>
200+
<span itemprop="name">Akira Takahashi</span>
201201
</span>
202202
が更新
203203
</small></p>
@@ -329,7 +329,7 @@ <h2>桁数</h2>
329329
<tr>
330330
<td><code><a href="cfloat/decimal_dig.html">DECIMAL_DIG</a></code></td>
331331
<td>精度が一番高い浮動小数点型の数値を10進数で正確に表すのに必要な有効数字の桁数。<br />上記モデルでは、$p_{\rm max}$ を精度が一番高い浮動小数点型の $p$ とすると、$b$ が $10$ の累乗の場合、$p_{\rm max} \log_{10} b$、それ以外の場合、$\lceil 1 + p_{\rm max}\log_{10} b\rceil$</td>
332-
<td>C++11</td>
332+
<td>C++11<br /> C++26で非推奨</td>
333333
</tr>
334334
<tr>
335335
<td><code><a href="cfloat/flt_mant_dig.html">FLT_MANT_DIG</a></code></td>
@@ -388,17 +388,71 @@ <h2>非正規化数</h2>
388388
<tr>
389389
<td><code><a href="cfloat/flt_has_subnorm.html">FLT_HAS_SUBNORM</a></code></td>
390390
<td><code>float</code>における非正規化数のサポート状況を判定する</td>
391-
<td>C++17</td>
391+
<td>C++17<br /> C++26で非推奨</td>
392392
</tr>
393393
<tr>
394394
<td><code><a href="cfloat/dbl_has_subnorm.html">DBL_HAS_SUBNORM</a></code></td>
395395
<td><code>double</code>における非正規化数のサポート状況を判定する</td>
396-
<td>C++17</td>
396+
<td>C++17<br /> C++26で非推奨</td>
397397
</tr>
398398
<tr>
399399
<td><code><a href="cfloat/ldbl_has_subnorm.html">LDBL_HAS_SUBNORM</a></code></td>
400400
<td><code>long double</code>における非正規化数のサポート状況を判定する</td>
401-
<td>C++17</td>
401+
<td>C++17<br /> C++26で非推奨</td>
402+
</tr>
403+
</tbody>
404+
</table>
405+
<h2>無限大とNaN</h2>
406+
<table border="1" bordercolor="#888" style="border-collapse:collapse">
407+
<thead>
408+
<tr>
409+
<th>マクロ</th>
410+
<th>説明</th>
411+
<th>対応バージョン</th>
412+
</tr>
413+
</thead>
414+
<tbody>
415+
<tr>
416+
<td><code><a href="cmath/infinity.html">INFINITY</a></code></td>
417+
<td><code>float</code>型の正の無限大</td>
418+
<td>C++26で<code>&lt;cfloat&gt;</code>に追加</td>
419+
</tr>
420+
<tr>
421+
<td><code><a href="cmath/nan.html">NAN</a></code></td>
422+
<td><code>float</code>型のquiet NaN</td>
423+
<td>C++26で<code>&lt;cfloat&gt;</code>に追加</td>
424+
</tr>
425+
<tr>
426+
<td><code><a href="cfloat/flt_snan.html">FLT_SNAN</a></code></td>
427+
<td><code>float</code>型のシグナルNaN</td>
428+
<td>C++26</td>
429+
</tr>
430+
<tr>
431+
<td><code><a href="cfloat/dbl_snan.html">DBL_SNAN</a></code></td>
432+
<td><code>double</code>型のシグナルNaN</td>
433+
<td>C++26</td>
434+
</tr>
435+
<tr>
436+
<td><code><a href="cfloat/ldbl_snan.html">LDBL_SNAN</a></code></td>
437+
<td><code>long double</code>型のシグナルNaN</td>
438+
<td>C++26</td>
439+
</tr>
440+
</tbody>
441+
</table>
442+
<h2>バージョン情報</h2>
443+
<table border="1" bordercolor="#888" style="border-collapse:collapse">
444+
<thead>
445+
<tr>
446+
<th>マクロ</th>
447+
<th>説明</th>
448+
<th>対応バージョン</th>
449+
</tr>
450+
</thead>
451+
<tbody>
452+
<tr>
453+
<td><code>__STDC_VERSION_FLOAT_H__</code></td>
454+
<td><code>&lt;cfloat&gt;</code>が提供するC標準ライブラリ機能のバージョン (<code>202311L</code>)</td>
455+
<td>C++26</td>
402456
</tr>
403457
</tbody>
404458
</table>
@@ -535,6 +589,10 @@ <h2>参照</h2>
535589
<ul>
536590
<li><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0063r3.html" target="_blank">P0063R3 C++17 should refer to C11 instead of C99</a></li>
537591
<li><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0175r1.html" target="_blank">P0175R1 Synopses for the C library</a></li>
592+
<li><a href="https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3348r4.html" target="_blank">P3348R4 C++26 should refer to C23 not C17</a><ul>
593+
<li>C++26がC23を参照するようになり、<code>INFINITY</code><code>NAN</code><code>FLT_SNAN</code><code>DBL_SNAN</code><code>LDBL_SNAN</code><code>__STDC_VERSION_FLOAT_H__</code>が追加された。<code>DECIMAL_DIG</code>が非推奨となり、<code>FLT_HAS_SUBNORM</code><code>DBL_HAS_SUBNORM</code><code>LDBL_HAS_SUBNORM</code>が廃止予定 (obsolescent) となった</li>
594+
</ul>
595+
</li>
538596
</ul></div>
539597

540598
</div>

reference/cfloat/dbl_has_subnorm.html

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
</head>
7070
<body>
71-
<header data-kunai-mdinfo="{&#34;meta&#34;: {&#34;header&#34;: [&#34;cfloat&#34;], &#34;id-type&#34;: [&#34;macro&#34;], &#34;cpp&#34;: [&#34;cpp17&#34;]}, &#34;sources&#34;: [{&#34;id&#34;: &#34;256514294edbcea26401e4c197bee70b561cff36&#34;, &#34;source&#34;: &#34;#include &lt;iostream&gt;\n#include &lt;cfloat&gt;\n\nint main()\n{\n std::cout &lt;&lt; FLT_HAS_SUBNORM &lt;&lt; std::endl;\n std::cout &lt;&lt; DBL_HAS_SUBNORM &lt;&lt; std::endl;\n std::cout &lt;&lt; LDBL_HAS_SUBNORM &lt;&lt; std::endl;\n}\n&#34;}], &#34;page_id&#34;: [&#34;reference&#34;, &#34;cfloat&#34;, &#34;dbl_has_subnorm&#34;]}">
71+
<header data-kunai-mdinfo="{&#34;meta&#34;: {&#34;header&#34;: [&#34;cfloat&#34;], &#34;id-type&#34;: [&#34;macro&#34;], &#34;cpp&#34;: [&#34;cpp17&#34;, &#34;cpp26deprecated&#34;]}, &#34;sources&#34;: [{&#34;id&#34;: &#34;256514294edbcea26401e4c197bee70b561cff36&#34;, &#34;source&#34;: &#34;#include &lt;iostream&gt;\n#include &lt;cfloat&gt;\n\nint main()\n{\n std::cout &lt;&lt; FLT_HAS_SUBNORM &lt;&lt; std::endl;\n std::cout &lt;&lt; DBL_HAS_SUBNORM &lt;&lt; std::endl;\n std::cout &lt;&lt; LDBL_HAS_SUBNORM &lt;&lt; std::endl;\n}\n&#34;}], &#34;page_id&#34;: [&#34;reference&#34;, &#34;cfloat&#34;, &#34;dbl_has_subnorm&#34;]}">
7272
<nav class="navbar navbar-default" role="navigation">
7373
<div class="container-fluid">
7474
<div class="navbar-header">
@@ -188,12 +188,12 @@
188188

189189
<p class="text-right"><small>
190190
最終更新日時(UTC):
191-
<span itemprop="datePublished" content="2025-07-13T04:07:37">
192-
2025年07月13日 04時07分37秒
191+
<span itemprop="datePublished" content="2026-06-08T11:56:08">
192+
2026年06月08日 11時56分08秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
196-
<span itemprop="name">Koichi Murase</span>
196+
<span itemprop="name">Akira Takahashi</span>
197197
</span>
198198
が更新
199199
</small></p>
@@ -212,10 +212,11 @@
212212
<div class="row">
213213
<div class="col-sm-12 content-body">
214214

215-
<div class="identifier-type">macro</div><div class="header">&lt;cfloat&gt;</div><h1 itemprop="name"><span class="token">DBL_HAS_SUBNORM</span><span class="cpp cpp17" title="C++17で追加">(C++17)</span></h1>
215+
<div class="identifier-type">macro</div><div class="header">&lt;cfloat&gt;</div><h1 itemprop="name"><span class="token">DBL_HAS_SUBNORM</span><span class="cpp cpp17" title="C++17で追加">(C++17)</span><span class="cpp cpp26deprecated text-warning" title="C++26で非推奨">(C++26で非推奨)</span></h1>
216216
<div itemprop="articleBody"><p><div class="codehilite"><pre><span></span><code><span class="cp">#define DBL_HAS_SUBNORM <i>implementation-defined</i></span>
217217
</code></pre></div>
218218
</p>
219+
<p>このマクロは、C++26で廃止予定 (obsolescent) となった。</p>
219220
<h2>概要</h2>
220221
<p><code>DBL_HAS_SUBNORM</code> は、<code>double</code>型における非正規化数のサポート状況を表すマクロである。</p>
221222
<table border="1" bordercolor="#888" style="border-collapse:collapse">
@@ -251,6 +252,13 @@ <h2>備考</h2>
251252
<ul>
252253
<li>このマクロは、非正規化数を表現できる場合の、浮動小数点数の正の最小値を表す<code><a href="dbl_true_min.html">DBL_TRUE_MIN</a></code>のために定義された</li>
253254
</ul>
255+
<h2>非推奨・削除の詳細</h2>
256+
<p>このマクロはコンパイル時定数として非正規化数のサポート状況を取得するものであったが、これは必ずしもコンパイル時に確定する値ではなく、有用でないため廃止予定 (obsolescent) となった:</p>
257+
<ul>
258+
<li>ハードウェアによっては非正規化数をソフトウェアエミュレーションでサポートする場合があり、サポート状況が判定できず<code>-1</code> (indeterminable) となることがある</li>
259+
<li>ハードウェアサポートがある場合でも、実行時のフラグ切り替えによって非正規化数をゼロにフラッシュ (flush-to-zero) するよう設定できるため、サポート状況がコンパイル時に確定しない場合がある</li>
260+
</ul>
261+
<p>C++23では、対応する<code><a href="../limits/numeric_limits.html">std::numeric_limits</a>&lt;double&gt;::<a href="../limits/numeric_limits/has_denorm.html">has_denorm</a></code>が同じ理由ですでに非推奨となっている。</p>
254262
<h2></h2>
255263
<p><div class="yata" id="256514294edbcea26401e4c197bee70b561cff36"><div class="codehilite"><pre><span></span><code><span class="cp">#include <a href="../iostream.html">&lt;iostream&gt;</a></span>
256264
<span class="cp">#include <a href="../cfloat.html">&lt;cfloat&gt;</a></span>
@@ -284,6 +292,10 @@ <h2>参照</h2>
284292
<li><a href="http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1378.htm" target="_blank">WG14/N1378 <code>xxx_TRUE_MIN</code> macros for <code>&lt;float.h&gt;</code></a></li>
285293
<li><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0063r3.html" target="_blank">P0063R3 C++17 should refer to C11 instead of C99</a></li>
286294
<li><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0175r1.html" target="_blank">P0175R1 Synopses for the C library</a></li>
295+
<li><a href="https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3348r4.html" target="_blank">P3348R4 C++26 should refer to C23 not C17</a><ul>
296+
<li>C++26がC23を参照するようになり、このマクロが廃止予定 (obsolescent) となった</li>
297+
</ul>
298+
</li>
287299
</ul></div>
288300

289301
</div>

0 commit comments

Comments
 (0)