Skip to content

Commit 93fcfc7

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 7584f17 commit 93fcfc7

File tree

12 files changed

+2830
-50
lines changed

12 files changed

+2830
-50
lines changed

lang/cpp26.html

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,12 @@
176176

177177
<p class="text-right"><small>
178178
最終更新日時(UTC):
179-
<span itemprop="datePublished" content="2025-08-24T16:54:17">
180-
2025年08月24日 16時54分17秒
179+
<span itemprop="datePublished" content="2025-09-18T08:32:28">
180+
2025年09月18日 08時32分28秒
181181
</span>
182182
<br/>
183183
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
184-
<span itemprop="name">Raclamusi</span>
184+
<span itemprop="name">Akira Takahashi</span>
185185
</span>
186186
が更新
187187
</small></p>
@@ -788,6 +788,13 @@ <h3>日付・時間</h3>
788788
</ul>
789789
<h3>数値</h3>
790790
<ul>
791+
<li><code><a href="../reference/cmath.html">&lt;cmath&gt;</a></code>に、浮動小数点数の最大値・最小値を求める以下の関数を追加<ul>
792+
<li><code><a href="../reference/cmath/fmaximum.html">std::fmaximum()</a></code> (-0.0と+0.0では+0.0を返し、NaNと数値ではNaNを返す)</li>
793+
<li><code><a href="../reference/cmath/fmaximum_num.html">std::fmaximum_num()</a></code> (-0.0と+0.0では+0.0を返し、NaNと数値では数値を返す)</li>
794+
<li><code><a href="../reference/cmath/fminimum.html">std::fminimum()</a></code> (-0.0と+0.0では-0.0を返し、NaNと数値ではNaNを返す)</li>
795+
<li><code><a href="../reference/cmath/fminimum_num.html">std::fminimum_num()</a></code> (-0.0と-0.0では+0.0を返し、NaNと数値では数値を返す)</li>
796+
</ul>
797+
</li>
791798
<li><code><a href="../reference/numeric.html">&lt;numeric&gt;</a></code>に、飽和演算 (Saturation Arithmetic) として、型の表現可能な範囲で演算を行う以下の関数を追加<ul>
792799
<li><code><a href="../reference/numeric/add_sat.html">std::add_sat()</a></code></li>
793800
<li><code><a href="../reference/numeric/sub_sat.html">std::sub_sat()</a></code></li>
@@ -796,6 +803,10 @@ <h3>数値</h3>
796803
<li><code><a href="../reference/numeric/saturate_cast.html">std::saturate_cast()</a></code></li>
797804
</ul>
798805
</li>
806+
<li><code><a href="../reference/complex/complex.html">std::complex</a></code>を構造化束縛や、将来のパターンマッチで使用できるようタプルインタフェースの特殊化を追加</li>
807+
<li><code><a href="../reference/random.html">&lt;random&gt;</a></code>の範囲<code>[0, 1)</code>の乱数を生成する<code><a href="../reference/random/generate_canonical.html">std::generate_canonical()</a></code>を、望ましい統計的性質を保証するようアルゴリズムと制約を変更</li>
808+
<li><code><a href="../reference/random.html">&lt;random&gt;</a></code>に、乱数列を生成する<code><a href="../reference/random/generate_random.html">std::ranges::generate_random()</a></code>関数を追加</li>
809+
<li><code><a href="../reference/random.html">&lt;random&gt;</a></code>に、乱数生成器は並列シミュレーションに効果的なカウンターベースのPhilox乱数生成器として、<code><a href="../reference/random/philox_engine.html">std::philox_engine</a></code>クラス、およびその別名である<code><a href="../reference/random/philox4x32.html">std::philox4x32</a></code><code><a href="../reference/random/philox4x64.html">std::philox4x64</a></code>を追加</li>
799810
<li><code><a href="../reference/cmath.html">&lt;cmath&gt;</a></code>の以下の関数を、<code>constexpr</code>に対応 (特殊関数と、グローバルの丸めモードに依存する丸め関数以外の全て)<ul>
800811
<li><code><a href="../reference/cmath/cos.html">std::cos()</a></code></li>
801812
<li><code><a href="../reference/cmath/sin.html">std::sin()</a></code></li>
@@ -855,10 +866,6 @@ <h3>数値</h3>
855866
<li><code><a href="../reference/complex/complex/real_free.html">std::real()</a></code> (算術型<a class="cpprefjp-defined-word" data-desc="同名の関数を異なる引数・テンプレート・制約などで複数定義すること。または同名の関数の集合">オーバーロード</a>)</li>
856867
</ul>
857868
</li>
858-
<li><code><a href="../reference/complex/complex.html">std::complex</a></code>を構造化束縛や、将来のパターンマッチで使用できるようタプルインタフェースの特殊化を追加</li>
859-
<li><code><a href="../reference/random.html">&lt;random&gt;</a></code>の範囲<code>[0, 1)</code>の乱数を生成する<code><a href="../reference/random/generate_canonical.html">std::generate_canonical()</a></code>を、望ましい統計的性質を保証するようアルゴリズムと制約を変更</li>
860-
<li><code><a href="../reference/random.html">&lt;random&gt;</a></code>に、乱数列を生成する<code><a href="../reference/random/generate_random.html">std::ranges::generate_random()</a></code>関数を追加</li>
861-
<li><code><a href="../reference/random.html">&lt;random&gt;</a></code>に、乱数生成器は並列シミュレーションに効果的なカウンターベースのPhilox乱数生成器として、<code><a href="../reference/random/philox_engine.html">std::philox_engine</a></code>クラス、およびその別名である<code><a href="../reference/random/philox4x32.html">std::philox4x32</a></code><code><a href="../reference/random/philox4x64.html">std::philox4x64</a></code>を追加</li>
862869
</ul>
863870
<h3>ユーティリティ</h3>
864871
<ul>

reference/chrono/make24.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ <h2>例</h2>
239239
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">12h</a></span><span class="p">,</span> <span class="nb">false</span><span class="p">)</span> <span class="o">==</span> <span class="n"><a href="duration/op_h.html">0h</a></span><span class="p">);</span>
240240

241241
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">12h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="n"><a href="duration/op_h.html">12h</a></span><span class="p">);</span>
242-
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">1h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="mf">1F</span><span class="n">TCDoQBCJSNBoubVKYvzPiZsxuIRZxOG</span><span class="p">);</span>
242+
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">1h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="mi">1</span><span class="n"><a href="duration/op_h.html">3h</a></span><span class="p">);</span>
243243
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">3h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="n"><a href="duration/op_h.html">15h</a></span><span class="p">);</span>
244244
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">11h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="n"><a href="duration/op_h.html">23h</a></span><span class="p">);</span>
245245
<span class="p">}</span>

reference/cmath.html

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,12 @@
176176

177177
<p class="text-right"><small>
178178
最終更新日時(UTC):
179-
<span itemprop="datePublished" content="2024-12-22T06:27:29">
180-
2024年12月22日 06時27分29秒
179+
<span itemprop="datePublished" content="2025-09-18T08:32:28">
180+
2025年09月18日 08時32分28秒
181181
</span>
182182
<br/>
183183
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
184-
<span itemprop="name">Raclamusi</span>
184+
<span itemprop="name">Akira Takahashi</span>
185185
</span>
186186
が更新
187187
</small></p>
@@ -904,15 +904,35 @@ <h2><a href="#maximum-minimum-and-positive-difference-functions" id="maximum-min
904904
<tbody>
905905
<tr>
906906
<td><code><a href="cmath/fmax.html">fmax</a></code></td>
907-
<td>最大値</td>
907+
<td>最大値 (<code>-0.0</code><code>+0.0</code>では<a class="cpprefjp-defined-word" data-desc="未規定の動作。事前の断りなく処理系によって異なる動作をする" href="../implementation-compliance.html#dfn-unspecified-behavior">未規定</a>、NaNと値では値を返す)</td>
908908
<td>C++11</td>
909909
</tr>
910910
<tr>
911911
<td><code><a href="cmath/fmin.html">fmin</a></code></td>
912-
<td>最小値</td>
912+
<td>最小値 (<code>-0.0</code><code>+0.0</code>では<a class="cpprefjp-defined-word" data-desc="未規定の動作。事前の断りなく処理系によって異なる動作をする" href="../implementation-compliance.html#dfn-unspecified-behavior">未規定</a>、NaNと値では値を返す)</td>
913913
<td>C++11</td>
914914
</tr>
915915
<tr>
916+
<td><code><a href="cmath/fmaximum.html">fmaximum</a></code></td>
917+
<td>最大値 (<code>-0.0</code><code>+0.0</code>では<code>+0.0</code>、NaNと値ではNaNを返す)</td>
918+
<td>C++26</td>
919+
</tr>
920+
<tr>
921+
<td><code><a href="cmath/fmaximum_num.html">fmaximum_num</a></code></td>
922+
<td>最大値 (<code>-0.0</code><code>+0.0</code>では<code>+0.0</code>、NaNと値では値を返す)</td>
923+
<td>C++26</td>
924+
</tr>
925+
<tr>
926+
<td><code><a href="cmath/fminimum.html">fminimum</a></code></td>
927+
<td>最小値 (<code>-0.0</code><code>+0.0</code>では<code>-0.0</code>、NaNと値ではNaNを返す)</td>
928+
<td>C++26</td>
929+
</tr>
930+
<tr>
931+
<td><code><a href="cmath/fminimum_num.html">fminimum_num</a></code></td>
932+
<td>最小値 (<code>-0.0</code><code>+0.0</code>では<code>-0.0</code>、NaNと値では値を返す)</td>
933+
<td>C++26</td>
934+
</tr>
935+
<tr>
916936
<td><code><a href="cmath/fdim.html">fdim</a></code></td>
917937
<td>正の差</td>
918938
<td>C++11</td>

reference/cmath/fmax.html

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

189189
<p class="text-right"><small>
190190
最終更新日時(UTC):
191-
<span itemprop="datePublished" content="2025-05-22T07:35:09">
192-
2025年05月22日 07時35分09秒
191+
<span itemprop="datePublished" content="2025-09-18T08:32:28">
192+
2025年09月18日 08時32分28秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -253,6 +253,33 @@ <h2>概要</h2>
253253
<li>(6) : <code>float</code>型規定</li>
254254
<li>(7) : <code>long double</code>型規定</li>
255255
</ul>
256+
<p>同じ目的のほかの関数との比較は以下。</p>
257+
<table border="1" bordercolor="#888" style="border-collapse:collapse">
258+
<thead>
259+
<tr>
260+
<th>関数名</th>
261+
<th>-0.0 と +0.0 の比較</th>
262+
<th>NaN を含む場合の挙動</th>
263+
</tr>
264+
</thead>
265+
<tbody>
266+
<tr>
267+
<td><code><a href="">fmax</a></code></td>
268+
<td><a class="cpprefjp-defined-word" data-desc="未規定の動作。事前の断りなく処理系によって異なる動作をする" href="../../implementation-compliance.html#dfn-unspecified-behavior">未規定</a></td>
269+
<td>NaN でない方を返す</td>
270+
</tr>
271+
<tr>
272+
<td><code><a href="fmaximum.html">fmaximum</a></code></td>
273+
<td>+0.0 を返す</td>
274+
<td>NaN を返す</td>
275+
</tr>
276+
<tr>
277+
<td><code><a href="fmaximum_num.html">fmaximum_num</a></code></td>
278+
<td>+0.0 を返す</td>
279+
<td>NaN でない方を返す</td>
280+
</tr>
281+
</tbody>
282+
</table>
256283
<h2><a class="cpprefjp-defined-word" data-desc="関数呼び出し式の評価結果となるオブジェクト・値">戻り値</a></h2>
257284
<p>引数の最大値を返す。</p>
258285
<h2>備考</h2>
@@ -263,7 +290,7 @@ <h2>備考</h2>
263290
<li>引数が2つとも NaN の場合 NaN を返す。</li>
264291
</ul>
265292
</li>
266-
<li>理想的には <code>fmax(-0.0, +0.0)</code><code>+0</code> を返す。</li>
293+
<li><code>-0.0</code><code>+0.0</code>の比較としてどちらが返されるかは<a class="cpprefjp-defined-word" data-desc="未規定の動作。事前の断りなく処理系によって異なる動作をする" href="../../implementation-compliance.html#dfn-unspecified-behavior">未規定</a></li>
267294
<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>
268295
</ul>
269296
<h2></h2>
@@ -328,6 +355,11 @@ <h2>実装例</h2>
328355
<span class="p">}</span>
329356
</code></pre></div>
330357
</p>
358+
<h2>関連項目</h2>
359+
<ul>
360+
<li><code><a href="fmaximum.html">fmaximum</a></code></li>
361+
<li><code><a href="fmaximum_num.html">fmaximum_num</a></code></li>
362+
</ul>
331363
<h2>参照</h2>
332364
<ul>
333365
<li><a href="https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p0533r9.pdf" target="_blank">P0533R9 constexpr for <code>&lt;cmath&gt;</code> and <code>&lt;cstdlib&gt;</code></a><ul>

0 commit comments

Comments
 (0)