-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrss.xml
More file actions
470 lines (415 loc) · 22.6 KB
/
rss.xml
File metadata and controls
470 lines (415 loc) · 22.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>cpprefjp - C++日本語リファレンス</title>
<link href="https://cpprefjp.github.io" />
<updated>2026-03-11T15:15:31.301181</updated>
<id>38bf6bfa-d97c-4579-9267-c0f9c5e790fc</id>
<entry>
<title>operator+ -- meta headerの指定ミスを修正</title>
<link href="https://cpprefjp.github.io/reference/string_view/basic_string_view/op_plus.html"/>
<id>038e14b4a3ce783bcbec09b1797480acd71de759:reference/string_view/basic_string_view/op_plus.md</id>
<updated>2026-03-11T13:51:33+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/string_view/basic_string_view/op_plus.md b/reference/string_view/basic_string_view/op_plus.md
index 02ea6db4e..c45086f04 100644
--- a/reference/string_view/basic_string_view/op_plus.md
+++ b/reference/string_view/basic_string_view/op_plus.md
@@ -1,5 +1,5 @@
# operator+
-* string[meta header]
+* string_view[meta header]
* std[meta namespace]
* function template[meta id-type]
* cpp26[meta cpp]
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>operator+ -- C++26対応としてstringとstring_viewを連結する演算子オーバーロードを追加 #1338</title>
<link href="https://cpprefjp.github.io/reference/string/basic_string/op_plus.html"/>
<id>9f82d6e43adb2d4da5956d9b6bcbcec9de2aa7de:reference/string/basic_string/op_plus.md</id>
<updated>2026-03-11T13:40:57+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/string/basic_string/op_plus.md b/reference/string/basic_string/op_plus.md
index 6b181c21b..f1bc288ea 100644
--- a/reference/string/basic_string/op_plus.md
+++ b/reference/string/basic_string/op_plus.md
@@ -113,12 +113,40 @@ namespace std {
constexpr basic_string&lt;charT, traits, Allocator&gt;
operator+(basic_string&lt;charT, traits, Allocator&gt;&amp;&amp; lhs,
charT rhs); // (12) C++20
+
+ template &lt;class charT, class traits, class Allocator&gt;
+ constexpr basic_string&lt;charT, traits, Allocator&gt;
+ operator+(const basic_string&lt;charT, traits, Allocator&gt;&amp; lhs,
+ type_identity_t&lt;basic_string_view&lt;charT, traits&gt;&gt; rhs); // (13) C++26
+
+ template &lt;class charT, class traits, class Allocator&gt;
+ constexpr basic_string&lt;charT, traits, Allocator&gt;
+ operator+(basic_string&lt;charT, traits, Allocator&gt;&amp;&amp; lhs,
+ type_identity_t&lt;basic_string_view&lt;charT, traits&gt;&gt; rhs); // (14) C++26
}
```
+* type_identity_t[link /reference/type_traits/type_identity.md]
+* basic_string_view[link /reference/string_view/basic_string_view.md]
+
## 概要
`basic_string` オブジェクトの連結を行う。
+- (1) : `basic_string`オブジェクト同士を連結する
+- (2) : 右辺値の`basic_string`オブジェクトと`basic_string`オブジェクトを連結する
+- (3) : `basic_string`オブジェクトと右辺値の`basic_string`オブジェクトを連結する
+- (4) : 右辺値の`basic_string`オブジェクト同士を連結する
+- (5) : 文字配列と`basic_string`オブジェクトを連結する
+- (6) : 文字配列と右辺値の`basic_string`オブジェクトを連結する
+- (7) : 文字と`basic_string`オブジェクトを連結する
+- (8) : 文字と右辺値の`basic_string`オブジェクトを連結する
+- (9) : `basic_string`オブジェクトと文字配列を連結する
+- (10) : 右辺値の`basic_string`オブジェクトと文字配列を連結する
+- (11) : `basic_string`オブジェクトと文字を連結する
+- (12) : 右辺値の`basic_string`オブジェクトと文字を連結する
+- (13) : `basic_string`オブジェクトと[`basic_string_view`](/reference/string_view/basic_string_view.md)オブジェクトを連結する
+- (14) : 右辺値の`basic_string`オブジェクトと[`basic_string_view`](/reference/string_view/basic_string_view.md)オブジェクトを連結する
+
## 戻り値
@@ -220,6 +248,21 @@ namespace std {
```
* push_back[link push_back.md]
+- (13) : 以下と等価
+ ```cpp
+ basic_string&lt;charT, traits, Allocator&gt; r = lhs;
+ r.append(rhs);
+ return r;
+ ```
+ * append[link append.md]
+
+- (14) : 以下と等価
+ ```cpp
+ lhs.append(rhs);
+ return std::move(lhs);
+ ```
+ * append[link append.md]
+
## 備考
(5), (6) の形式の `lhs`、および、(9), (10) の形式の `rhs` の文字列長算出のために `traits::length()` が使用される
@@ -242,11 +285,14 @@ C++20からこの演算子による文字列連結時にアロケータがどの
|(10) : `std::move(lhs) + &#34;rhs&#34;`|`lhs`|`lhs`|`lhs`|`lhs`|`lhs`|
|(11) : `lhs + &#39;r&#39;`|新規にデフォルト構築|`lhs`からのSOCCC|`lhs`|新規にデフォルト構築|`lhs`からのSOCCC|
|(12) : `std::move(lhs) + &#39;r&#39;`|`lhs`|`lhs`|`lhs`|`lhs`|`lhs`|
+|(13) : `lhs + sv`| | | | |`lhs`からのSOCCC|
+|(14) : `std::move(lhs) + sv`| | | | |`lhs`|
表にあるように、C++17までの仕様に完全に準拠している実装は無かった上に各実装によって伝播仕様がバラバラだったため、この変更によって影響を受けるコードはほぼ無いと思われる。
## 例
+### 基本的な使い方
```cpp example
#include &lt;iostream&gt;
#include &lt;string&gt;
@@ -263,11 +309,39 @@ int main()
```
* +[color ff0000]
-### 出力
+#### 出力
```
Hello, world!
```
+### string_viewとの連結 (C++26)
+```cpp example
+#include &lt;iostream&gt;
+#include &lt;string&gt;
+#include &lt;string_view&gt;
+
+int main()
+{
+ std::string s = &#34;Hello&#34;;
+ std::string_view sv = &#34;, World!&#34;;
+
+ // string + string_view (13)
+ std::string result1 = s + sv;
+ std::cout &lt;&lt; result1 &lt;&lt; &#39;\n&#39;;
+
+ // string&amp;&amp; + string_view (14)
+ std::string result2 = std::string(&#34;Hello&#34;) + sv;
+ std::cout &lt;&lt; result2 &lt;&lt; &#39;\n&#39;;
+}
+```
+* +[color ff0000]
+
+#### 出力
+```
+Hello, World!
+Hello, World!
+```
+
## 関連項目
| 名前 | 説明 |
@@ -276,6 +350,19 @@ Hello, world!
| [`push_back`](push_back.md) | 文字を追加する |
| [`insert`](insert.md) | 文字/文字列を挿入する |
+## バージョン
+### 言語
+- C++03
+- C++26 : (13), (14)
+
+### 処理系
+- [Clang](/implementation.md#clang): ??
+- [GCC](/implementation.md#gcc): ??
+- [ICC](/implementation.md#icc): ??
+- [Visual C++](/implementation.md#visual_cpp): ??
+
## 参照
- [P1165R1 Make stateful allocator propagation more consistent for operator+(basic_string)](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1165r1.html)
- [P0980R1 Making `std::string` constexpr](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0980r1.pdf)
+- [P2591R5 Concatenation of strings and string views](https://open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2591r5.html)
+ - C++26で`string_view`との連結が追加された
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>basic_string_view -- C++26対応としてstringとstring_viewを連結する演算子オーバーロードを追加 #1338</title>
<link href="https://cpprefjp.github.io/reference/string_view/basic_string_view.html"/>
<id>9f82d6e43adb2d4da5956d9b6bcbcec9de2aa7de:reference/string_view/basic_string_view.md</id>
<updated>2026-03-11T13:40:57+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/string_view/basic_string_view.md b/reference/string_view/basic_string_view.md
index 4774acf50..c42dd9849 100644
--- a/reference/string_view/basic_string_view.md
+++ b/reference/string_view/basic_string_view.md
@@ -140,6 +140,12 @@ string_view hello = sv.substr(0, 5); // 先頭5文字を抽出する
## 非メンバ関数
+### 文字列連結
+
+| 名前 | 説明 | 対応バージョン |
+|------|------|----------------|
+| [`operator+`](basic_string_view/op_plus.md) | 文字列の連結 | C++26 |
+
### 比較演算
| 名前 | 説明 | 対応バージョン |
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>operator+ -- C++26対応としてstringとstring_viewを連結する演算子オーバーロードを追加 #1338</title>
<link href="https://cpprefjp.github.io/reference/string_view/basic_string_view/op_plus.html"/>
<id>9f82d6e43adb2d4da5956d9b6bcbcec9de2aa7de:reference/string_view/basic_string_view/op_plus.md</id>
<updated>2026-03-11T13:40:57+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/string_view/basic_string_view/op_plus.md b/reference/string_view/basic_string_view/op_plus.md
new file mode 100644
index 000000000..02ea6db4e
--- /dev/null
+++ b/reference/string_view/basic_string_view/op_plus.md
@@ -0,0 +1,94 @@
+# operator+
+* string[meta header]
+* std[meta namespace]
+* function template[meta id-type]
+* cpp26[meta cpp]
+
+```cpp
+namespace std {
+ template &lt;class charT, class traits, class Allocator&gt;
+ constexpr basic_string&lt;charT, traits, Allocator&gt;
+ operator+(type_identity_t&lt;basic_string_view&lt;charT, traits&gt;&gt; lhs,
+ const basic_string&lt;charT, traits, Allocator&gt;&amp; rhs); // (1) C++26
+
+ template &lt;class charT, class traits, class Allocator&gt;
+ constexpr basic_string&lt;charT, traits, Allocator&gt;
+ operator+(type_identity_t&lt;basic_string_view&lt;charT, traits&gt;&gt; lhs,
+ basic_string&lt;charT, traits, Allocator&gt;&amp;&amp; rhs); // (2) C++26
+}
+```
+* type_identity_t[link /reference/type_traits/type_identity.md]
+* basic_string[link /reference/string/basic_string.md]
+
+## 概要
+[`basic_string_view`](../basic_string_view.md)オブジェクトと[`basic_string`](/reference/string/basic_string.md)オブジェクトを連結する。
+
+- (1) : [`basic_string_view`](../basic_string_view.md)オブジェクトと`basic_string`オブジェクトを連結する
+- (2) : [`basic_string_view`](../basic_string_view.md)オブジェクトと右辺値の`basic_string`オブジェクトを連結する
+
+`basic_string_view`側の引数に[`type_identity_t`](/reference/type_traits/type_identity.md)を使用することで非推論コンテキストとし、`basic_string_view`に暗黙変換可能な型からの連結を可能にしている。
+
+
+## 戻り値
+- (1) : 以下と等価
+ ```cpp
+ basic_string&lt;charT, traits, Allocator&gt; r = rhs;
+ r.insert(0, lhs);
+ return r;
+ ```
+ * insert[link /reference/string/basic_string/insert.md]
+
+- (2) : 以下と等価
+ ```cpp
+ rhs.insert(0, lhs);
+ return std::move(rhs);
+ ```
+ * insert[link /reference/string/basic_string/insert.md]
+
+
+## 例
+```cpp example
+#include &lt;iostream&gt;
+#include &lt;string&gt;
+#include &lt;string_view&gt;
+
+int main()
+{
+ std::string_view sv = &#34;Hello, &#34;;
+ std::string s = &#34;World!&#34;;
+
+ // string_view + string (1)
+ std::string result1 = sv + s;
+ std::cout &lt;&lt; result1 &lt;&lt; &#39;\n&#39;;
+
+ // string_view + string&amp;&amp; (2)
+ std::string result2 = sv + std::string(&#34;World!&#34;);
+ std::cout &lt;&lt; result2 &lt;&lt; &#39;\n&#39;;
+}
+```
+* +[color ff0000]
+
+### 出力
+```
+Hello, World!
+Hello, World!
+```
+
+## バージョン
+### 言語
+- C++26
+
+### 処理系
+- [Clang](/implementation.md#clang): ??
+- [GCC](/implementation.md#gcc): ??
+- [ICC](/implementation.md#icc): ??
+- [Visual C++](/implementation.md#visual_cpp): ??
+
+## 関連項目
+
+| 名前 | 説明 |
+|-------------------------------|------------------------|
+| [`basic_string::operator+`](/reference/string/basic_string/op_plus.md) | 文字列の連結 |
+
+## 参照
+- [P2591R5 Concatenation of strings and string views](https://open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2591r5.html)
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>spawn -- Merge pull request #1592 from Ryoga-exe/patch-2</title>
<link href="https://cpprefjp.github.io/reference/execution/execution/spawn.html"/>
<id>413e0cce296d1cc87a2f295ac0998dde47877b34:reference/execution/execution/spawn.md</id>
<updated>2026-03-10T17:10:20+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/execution/spawn.md b/reference/execution/execution/spawn.md
index 4e9ab7ce8..25bbfe118 100644
--- a/reference/execution/execution/spawn.md
+++ b/reference/execution/execution/spawn.md
@@ -28,7 +28,7 @@ namespace std::execution {
そうでなければ、呼び出し式`spawn(sndr, token, env)`に対して、説明用の式`new_sender`を[`token.wrap`](scope_token.md)`(sndr)`とし、`alloc`と`senv`を次の通りとする。
- 式[`get_allocator`](../get_allocator.md)`(env)`が適格なとき、`alloc`を[`get_allocator`](../get_allocator.md)`(env)`の結果、`senv`を式`env`とする。
-- そうでなはく、式[`get_allocator`](../get_allocator.md)`(`[`get_env`](get_env.md)`(new_sender))`が適格なとき、`alloc`を[`get_allocator`](../get_allocator.md)`(`[`get_env`](get_env.md)`(new_sender))`の結果、`senv`を式[`JOIN-ENV`](../queryable.md)`(`[`prop`](prop.md)`(`[`get_allocator`](../get_allocator.md)`, alloc), env)`とする。
+- そうではなく、式[`get_allocator`](../get_allocator.md)`(`[`get_env`](get_env.md)`(new_sender))`が適格なとき、`alloc`を[`get_allocator`](../get_allocator.md)`(`[`get_env`](get_env.md)`(new_sender))`の結果、`senv`を式[`JOIN-ENV`](../queryable.md)`(`[`prop`](prop.md)`(`[`get_allocator`](../get_allocator.md)`, alloc), env)`とする。
- そうではないとき、`alloc`を[`allocator`](/reference/memory/allocator.md)`&lt;void&gt;()`、`senv`を式`env`とする。
呼び出し式`spawn(sndr, token, env)`は`void`型であり、次の効果をもつ。
</code></pre></summary>
<author>
<name>Ryoga</name>
<email>49950206+Ryoga-exe@users.noreply.github.com</email>
</author>
</entry>
<entry>
<title>spawn_future -- Merge pull request #1592 from Ryoga-exe/patch-2</title>
<link href="https://cpprefjp.github.io/reference/execution/execution/spawn_future.html"/>
<id>413e0cce296d1cc87a2f295ac0998dde47877b34:reference/execution/execution/spawn_future.md</id>
<updated>2026-03-10T17:10:20+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/execution/spawn_future.md b/reference/execution/execution/spawn_future.md
index df9ec183d..f462903ff 100644
--- a/reference/execution/execution/spawn_future.md
+++ b/reference/execution/execution/spawn_future.md
@@ -30,7 +30,7 @@ namespace std::execution {
そうでなければ、呼び出し式`spawn_future(sndr, token, env)`に対して、説明用の式`new_sender`を[`token.wrap`](scope_token.md)`(sndr)`とし、`alloc`と`senv`を次の通りとする。
- 式[`get_allocator`](../get_allocator.md)`(env)`が適格なとき、`alloc`を[`get_allocator`](../get_allocator.md)`(env)`の結果、`senv`を式`env`とする。
-- そうでなはく、式[`get_allocator`](../get_allocator.md)`(`[`get_env`](get_env.md)`(new_sender))`が適格なとき、`alloc`を[`get_allocator`](../get_allocator.md)`(`[`get_env`](get_env.md)`(new_sender))`の結果、`senv`を式[`JOIN-ENV`](../queryable.md)`(`[`prop`](prop.md)`(`[`get_allocator`](../get_allocator.md)`, alloc), env)`とする。
+- そうではなく、式[`get_allocator`](../get_allocator.md)`(`[`get_env`](get_env.md)`(new_sender))`が適格なとき、`alloc`を[`get_allocator`](../get_allocator.md)`(`[`get_env`](get_env.md)`(new_sender))`の結果、`senv`を式[`JOIN-ENV`](../queryable.md)`(`[`prop`](prop.md)`(`[`get_allocator`](../get_allocator.md)`, alloc), env)`とする。
- そうではないとき、`alloc`を[`allocator`](/reference/memory/allocator.md)`&lt;void&gt;()`、`senv`を式`env`とする。
呼び出し式`spawn_future(sndr, token, env)`は、次の効果をもつ。
</code></pre></summary>
<author>
<name>Ryoga</name>
<email>49950206+Ryoga-exe@users.noreply.github.com</email>
</author>
</entry>
<entry>
<title>spawn -- fix typo in reference/execution/execution/{spawn.md,spawn_future.md}</title>
<link href="https://cpprefjp.github.io/reference/execution/execution/spawn.html"/>
<id>971dd4b9f6412a01304d2bd69523f86c8a0dc767:reference/execution/execution/spawn.md</id>
<updated>2026-03-09T19:10:28+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/execution/spawn.md b/reference/execution/execution/spawn.md
index 4e9ab7ce8..25bbfe118 100644
--- a/reference/execution/execution/spawn.md
+++ b/reference/execution/execution/spawn.md
@@ -28,7 +28,7 @@ namespace std::execution {
そうでなければ、呼び出し式`spawn(sndr, token, env)`に対して、説明用の式`new_sender`を[`token.wrap`](scope_token.md)`(sndr)`とし、`alloc`と`senv`を次の通りとする。
- 式[`get_allocator`](../get_allocator.md)`(env)`が適格なとき、`alloc`を[`get_allocator`](../get_allocator.md)`(env)`の結果、`senv`を式`env`とする。
-- そうでなはく、式[`get_allocator`](../get_allocator.md)`(`[`get_env`](get_env.md)`(new_sender))`が適格なとき、`alloc`を[`get_allocator`](../get_allocator.md)`(`[`get_env`](get_env.md)`(new_sender))`の結果、`senv`を式[`JOIN-ENV`](../queryable.md)`(`[`prop`](prop.md)`(`[`get_allocator`](../get_allocator.md)`, alloc), env)`とする。
+- そうではなく、式[`get_allocator`](../get_allocator.md)`(`[`get_env`](get_env.md)`(new_sender))`が適格なとき、`alloc`を[`get_allocator`](../get_allocator.md)`(`[`get_env`](get_env.md)`(new_sender))`の結果、`senv`を式[`JOIN-ENV`](../queryable.md)`(`[`prop`](prop.md)`(`[`get_allocator`](../get_allocator.md)`, alloc), env)`とする。
- そうではないとき、`alloc`を[`allocator`](/reference/memory/allocator.md)`&lt;void&gt;()`、`senv`を式`env`とする。
呼び出し式`spawn(sndr, token, env)`は`void`型であり、次の効果をもつ。
</code></pre></summary>
<author>
<name>Ryoga-exe</name>
<email>git@ryoga.dev</email>
</author>
</entry>
<entry>
<title>spawn_future -- fix typo in reference/execution/execution/{spawn.md,spawn_future.md}</title>
<link href="https://cpprefjp.github.io/reference/execution/execution/spawn_future.html"/>
<id>971dd4b9f6412a01304d2bd69523f86c8a0dc767:reference/execution/execution/spawn_future.md</id>
<updated>2026-03-09T19:10:28+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/execution/spawn_future.md b/reference/execution/execution/spawn_future.md
index df9ec183d..f462903ff 100644
--- a/reference/execution/execution/spawn_future.md
+++ b/reference/execution/execution/spawn_future.md
@@ -30,7 +30,7 @@ namespace std::execution {
そうでなければ、呼び出し式`spawn_future(sndr, token, env)`に対して、説明用の式`new_sender`を[`token.wrap`](scope_token.md)`(sndr)`とし、`alloc`と`senv`を次の通りとする。
- 式[`get_allocator`](../get_allocator.md)`(env)`が適格なとき、`alloc`を[`get_allocator`](../get_allocator.md)`(env)`の結果、`senv`を式`env`とする。
-- そうでなはく、式[`get_allocator`](../get_allocator.md)`(`[`get_env`](get_env.md)`(new_sender))`が適格なとき、`alloc`を[`get_allocator`](../get_allocator.md)`(`[`get_env`](get_env.md)`(new_sender))`の結果、`senv`を式[`JOIN-ENV`](../queryable.md)`(`[`prop`](prop.md)`(`[`get_allocator`](../get_allocator.md)`, alloc), env)`とする。
+- そうではなく、式[`get_allocator`](../get_allocator.md)`(`[`get_env`](get_env.md)`(new_sender))`が適格なとき、`alloc`を[`get_allocator`](../get_allocator.md)`(`[`get_env`](get_env.md)`(new_sender))`の結果、`senv`を式[`JOIN-ENV`](../queryable.md)`(`[`prop`](prop.md)`(`[`get_allocator`](../get_allocator.md)`, alloc), env)`とする。
- そうではないとき、`alloc`を[`allocator`](/reference/memory/allocator.md)`&lt;void&gt;()`、`senv`を式`env`とする。
呼び出し式`spawn_future(sndr, token, env)`は、次の効果をもつ。
</code></pre></summary>
<author>
<name>Ryoga-exe</name>
<email>git@ryoga.dev</email>
</author>
</entry>
<entry>
<title>random -- random: Code Projectの記事がリンク切れしていたが基本的な使い方の内容だったので言及を削除することにした #1590</title>
<link href="https://cpprefjp.github.io/reference/random.html"/>
<id>c22c39fe3073c46b31426ec4541a341044a575c3:reference/random.md</id>
<updated>2026-03-09T11:24:36+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/random.md b/reference/random.md
index f09f5dc71..9e2aab544 100644
--- a/reference/random.md
+++ b/reference/random.md
@@ -246,7 +246,6 @@ int main()
### 乱数ライブラリの使い方
* [N3551 Random Number Generation in C++11](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3551.pdf)
-* [Pitfalls in Random Number Generation](https://www.codeproject.com/articles/28548/pitfalls-in-random-number-generation)
### 乱数ライブラリが導入された経緯
* [N0352 Proposal for Standardization of Random Number Generators in C++](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/1993/N0352.asc)
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
</feed>