Skip to content

Commit 82c0d57

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent b838e5b commit 82c0d57

File tree

3 files changed

+32
-30
lines changed

3 files changed

+32
-30
lines changed

reference/random/uniform_real_distribution.html

Lines changed: 3 additions & 2 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="2026-03-19T02:23:48">
192-
2026年03月19日 02時23分48秒
191+
<span itemprop="datePublished" content="2026-03-19T04:15:46">
192+
2026年03月19日 04時15分46秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -229,6 +229,7 @@ <h2>概要</h2>
229229
<h2>備考</h2>
230230
<ul>
231231
<li><code>uniform_real_distribution</code>の実装は、内部的に<code><a href="generate_canonical.html">std::generate_canonical()</a></code>を使用している環境がある<ul>
232+
<li><code>std::generate_canonical&lt;std::numeric_limits&lt;RealType&gt;::digits&gt;(rng) * (b - a) + a</code>のようにして、指定された範囲<code>[a, b)</code>の値を生成する</li>
232233
<li>C++23まではその<code>std::generate_canonical()</code>の仕様上、浮動小数点数の丸めにより指定範囲外の値(上限値<code>b</code>)が生成されることがあった</li>
233234
<li>C++26では<code>std::generate_canonical()</code>に棄却法が導入されたことで、この問題は解消された<ul>
234235
<li><a href="https://open-std.org/jtc1/sc22/wg21/docs/papers/2023/p0952r2.html" target="_blank">P0952R2 A New Specification for <code>generate_canonical</code></a></li>

rss.xml

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,36 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<title>cpprefjp - C++日本語リファレンス</title>
44
<link href="https://cpprefjp.github.io" />
5-
<updated>2026-03-19T02:28:40.329572</updated>
6-
<id>e62d2234-3781-478f-8c0b-c7e843079e0d</id>
5+
<updated>2026-03-19T04:19:52.974162</updated>
6+
<id>0f864022-260b-47c3-b12f-dd72d65672e7</id>
77

88

9+
<entry>
10+
<title>uniform_real_distribution -- uniform_real_distribution : generate_canonicalベースの実装例を記載 #1239</title>
11+
<link href="https://cpprefjp.github.io/reference/random/uniform_real_distribution.html"/>
12+
<id>d47dab17cd59f6d59cdcc3cb74a6657b35d44fc7:reference/random/uniform_real_distribution.md</id>
13+
<updated>2026-03-19T13:15:46+09:00</updated>
14+
15+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/random/uniform_real_distribution.md b/reference/random/uniform_real_distribution.md
16+
index dce25840e..97f45bc1a 100644
17+
--- a/reference/random/uniform_real_distribution.md
18+
+++ b/reference/random/uniform_real_distribution.md
19+
@@ -22,6 +22,7 @@ namespace std {
20+
21+
## 備考
22+
- `uniform_real_distribution`の実装は、内部的に[`std::generate_canonical()`](generate_canonical.md)を使用している環境がある
23+
+ - `std::generate_canonical&amp;lt;std::numeric_limits&amp;lt;RealType&amp;gt;::digits&amp;gt;(rng) * (b - a) + a`のようにして、指定された範囲`[a, b)`の値を生成する
24+
- C++23まではその`std::generate_canonical()`の仕様上、浮動小数点数の丸めにより指定範囲外の値(上限値`b`)が生成されることがあった
25+
- C++26では`std::generate_canonical()`に棄却法が導入されたことで、この問題は解消された
26+
- [P0952R2 A New Specification for `generate_canonical`](https://open-std.org/jtc1/sc22/wg21/docs/papers/2023/p0952r2.html)
27+
&lt;/code&gt;&lt;/pre&gt;</summary>
28+
29+
<author>
30+
<name>Akira Takahashi</name>
31+
<email>faithandbrave@gmail.com</email>
32+
</author>
33+
</entry>
34+
935
<entry>
1036
<title>generate_canonical -- generate_canonical : C++26で範囲外の値が生成されなくなった仕様変更に対応 #1239</title>
1137
<link href="https://cpprefjp.github.io/reference/random/generate_canonical.html"/>
@@ -4965,29 +4991,4 @@ index 000000000..132377697
49654991
</author>
49664992
</entry>
49674993

4968-
<entry>
4969-
<title>operator+ -- meta headerの指定ミスを修正</title>
4970-
<link href="https://cpprefjp.github.io/reference/string_view/basic_string_view/op_plus.html"/>
4971-
<id>038e14b4a3ce783bcbec09b1797480acd71de759:reference/string_view/basic_string_view/op_plus.md</id>
4972-
<updated>2026-03-11T13:51:33+09:00</updated>
4973-
4974-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/string_view/basic_string_view/op_plus.md b/reference/string_view/basic_string_view/op_plus.md
4975-
index 02ea6db4e..c45086f04 100644
4976-
--- a/reference/string_view/basic_string_view/op_plus.md
4977-
+++ b/reference/string_view/basic_string_view/op_plus.md
4978-
@@ -1,5 +1,5 @@
4979-
# operator+
4980-
-* string[meta header]
4981-
+* string_view[meta header]
4982-
* std[meta namespace]
4983-
* function template[meta id-type]
4984-
* cpp26[meta cpp]
4985-
&lt;/code&gt;&lt;/pre&gt;</summary>
4986-
4987-
<author>
4988-
<name>Akira Takahashi</name>
4989-
<email>faithandbrave@gmail.com</email>
4990-
</author>
4991-
</entry>
4992-
49934994
</feed>

sitemap.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37509,7 +37509,7 @@
3750937509

3751037510
<url>
3751137511
<loc>https://cpprefjp.github.io/reference/random/uniform_real_distribution.html</loc>
37512-
<lastmod>2026-03-19T11:23:48+09:00</lastmod>
37512+
<lastmod>2026-03-19T13:15:46+09:00</lastmod>
3751337513
<changefreq>daily</changefreq>
3751437514
<priority>0.7</priority>
3751537515
</url>

0 commit comments

Comments
 (0)