|
2 | 2 | <feed xmlns="http://www.w3.org/2005/Atom">
|
3 | 3 | <title>cpprefjp - C++日本語リファレンス</title>
|
4 | 4 | <link href="https://cpprefjp.github.io" />
|
5 |
| - <updated>2025-04-22T09:11:21.904915</updated> |
6 |
| - <id>123ba0a0-0611-47c8-8436-331f643f0dc3</id> |
| 5 | + <updated>2025-04-22T14:21:04.871394</updated> |
| 6 | + <id>c8202f7c-9e62-4d5b-b2e2-4675511b6617</id> |
7 | 7 |
|
8 | 8 |
|
| 9 | + <entry> |
| 10 | + <title>ファイルを読み込む#embed命令を追加 [P1967R14] -- C++26 embed: から → 空</title> |
| 11 | + <link href="https://cpprefjp.github.io/lang/cpp26/embed.html"/> |
| 12 | + <id>0c1871fe4d90d7fb1e91931273710842ef76198d:lang/cpp26/embed.md</id> |
| 13 | + <updated>2025-04-22T23:17:34+09:00</updated> |
| 14 | + |
| 15 | + <summary type="html"><pre><code>diff --git a/lang/cpp26/embed.md b/lang/cpp26/embed.md |
| 16 | +index ef5fc9ee6..7b2b64d8a 100644 |
| 17 | +--- a/lang/cpp26/embed.md |
| 18 | ++++ b/lang/cpp26/embed.md |
| 19 | +@@ -63,7 +63,7 @@ int main() { |
| 20 | + - `limit(1024)`では、読み込むバイトサイズを1024byteに制限する。もしファイルサイズが1024byteよりも大きければ、最初の1024バイトのみが読み込まれる。 |
| 21 | + - `prefix(0x01, 0x02, 0x03)`では、`data.bin`の内容の前に`0x01 0x02 0x03`のバイト列を追加している。 |
| 22 | + - `suffix(0xFE, 0xFF)`では、`data.bin`の内容のあとに`0xFE 0xFF`のバイト列を追加している。 |
| 23 | +-- `if_empty(0x00)`では、`data.bin`がからであった場合、`0x00`のバイト列を格納している。 |
| 24 | ++- `if_empty(0x00)`では、`data.bin`が空であった場合、`0x00`のバイト列を格納している。 |
| 25 | + |
| 26 | + また、`#embed`ディレクティブは、複数のパラメータを**順不同**で組み合わせて指定することもできる。 |
| 27 | + |
| 28 | +</code></pre></summary> |
| 29 | + |
| 30 | + <author> |
| 31 | + <name>Akira Takahashi</name> |
| 32 | + <email>faithandbrave@gmail.com</email> |
| 33 | + </author> |
| 34 | + </entry> |
| 35 | + |
9 | 36 | <entry>
|
10 | 37 | <title>execution -- execution: value_type_of_t,error_type_of_t,sends_stopped (#1384)</title>
|
11 | 38 | <link href="https://cpprefjp.github.io/reference/execution/execution.html"/>
|
@@ -1205,297 +1232,6 @@ index 53e7d91fc..9bd1ad082 100644
|
1205 | 1232 | - そうでなければ、[`never_stop_token{}`](/reference/stop_token/never_stop_token.md)
|
1206 | 1233 |
|
1207 | 1234 |
|
1208 |
| -</code></pre></summary> |
1209 |
| - |
1210 |
| - <author> |
1211 |
| - <name>yoh</name> |
1212 |
| - <email>kawasaki.liamg@gmail.com</email> |
1213 |
| - </author> |
1214 |
| - </entry> |
1215 |
| - |
1216 |
| - <entry> |
1217 |
| - <title>execution -- execution: get_stop_token,stop_token_of_t (#1384)</title> |
1218 |
| - <link href="https://cpprefjp.github.io/reference/execution/execution.html"/> |
1219 |
| - <id>d512f5b175382335a2becad9da0311a9de99dc42:reference/execution/execution.md</id> |
1220 |
| - <updated>2025-04-21T18:43:28+09:00</updated> |
1221 |
| - |
1222 |
| - <summary type="html"><pre><code>diff --git a/reference/execution/execution.md b/reference/execution/execution.md |
1223 |
| -index 835352c5b..e614367a5 100644 |
1224 |
| ---- a/reference/execution/execution.md |
1225 |
| -+++ b/reference/execution/execution.md |
1226 |
| -@@ -37,8 +37,8 @@ namespace std::execution { |
1227 |
| - |------|------|----------------| |
1228 |
| - | [`forwarding_query`](forwarding_query.md.nolink) | クエリオブジェクトに転送問い合わせ可能か否かを返す (customization point object) | C++26 | |
1229 |
| - | [`get_allocator`](get_allocator.md.nolink) | アロケータ取得のクエリオブジェクト (customization point object) | C++26 | |
1230 |
| --| [`get_stop_token`](get_stop_token.md.nolink) | 停止トークン取得のクエリオブジェクト (customization point object) | C++26 | |
1231 |
| --| [`stop_token_of_t`](get_stop_token.md.nolink) | 指定型から停止トークン型を取得 (alias template) | C++26 | |
1232 |
| -+| [`get_stop_token`](get_stop_token.md) | 停止トークン取得のクエリオブジェクト (customization point object) | C++26 | |
1233 |
| -+| [`stop_token_of_t`](stop_token_of_t.md) | 指定型から停止トークン型を取得 (alias template) | C++26 | |
1234 |
| - | [`execution::get_domain`](execution/get_domain.md.nolink) | 実行ドメイン取得のクエリオブジェクト (customization point object) | C++26 | |
1235 |
| - | [`execution::get_scheduler`](execution/get_scheduler.md.nolink) | Scheduler取得のクエリオブジェクト (customization point object) | C++26 | |
1236 |
| - | [`execution::get_delegation_scheduler`](execution/get_delegation_scheduler.md.nolink) | 委譲Scheduler取得のクエリオブジェクト (customization point object) | C++26 | |
1237 |
| -</code></pre></summary> |
1238 |
| - |
1239 |
| - <author> |
1240 |
| - <name>yoh</name> |
1241 |
| - <email>kawasaki.liamg@gmail.com</email> |
1242 |
| - </author> |
1243 |
| - </entry> |
1244 |
| - |
1245 |
| - <entry> |
1246 |
| - <title>env -- execution: get_stop_token,stop_token_of_t (#1384)</title> |
1247 |
| - <link href="https://cpprefjp.github.io/reference/execution/execution/env.html"/> |
1248 |
| - <id>d512f5b175382335a2becad9da0311a9de99dc42:reference/execution/execution/env.md</id> |
1249 |
| - <updated>2025-04-21T18:43:28+09:00</updated> |
1250 |
| - |
1251 |
| - <summary type="html"><pre><code>diff --git a/reference/execution/execution/env.md b/reference/execution/execution/env.md |
1252 |
| -index 947d376b4..769d43c01 100644 |
1253 |
| ---- a/reference/execution/execution/env.md |
1254 |
| -+++ b/reference/execution/execution/env.md |
1255 |
| -@@ -62,7 +62,7 @@ int main() |
1256 |
| - * ex::env[color ff0000] |
1257 |
| - * ex::prop[link prop.md] |
1258 |
| - * std::get_allocator[link get_allocator.md.nolink] |
1259 |
| --* std::get_stop_token[link get_stop_token.md.nolink] |
1260 |
| -+* std::get_stop_token[link ../get_stop_token.md] |
1261 |
| - * std::never_stop_token[link /reference/stop_token/never_stop_token.md] |
1262 |
| - |
1263 |
| - ### 出力 |
1264 |
| -</code></pre></summary> |
1265 |
| - |
1266 |
| - <author> |
1267 |
| - <name>yoh</name> |
1268 |
| - <email>kawasaki.liamg@gmail.com</email> |
1269 |
| - </author> |
1270 |
| - </entry> |
1271 |
| - |
1272 |
| - <entry> |
1273 |
| - <title>query -- execution: get_stop_token,stop_token_of_t (#1384)</title> |
1274 |
| - <link href="https://cpprefjp.github.io/reference/execution/execution/env/query.html"/> |
1275 |
| - <id>d512f5b175382335a2becad9da0311a9de99dc42:reference/execution/execution/env/query.md</id> |
1276 |
| - <updated>2025-04-21T18:43:28+09:00</updated> |
1277 |
| - |
1278 |
| - <summary type="html"><pre><code>diff --git a/reference/execution/execution/env/query.md b/reference/execution/execution/env/query.md |
1279 |
| -index dbd030f8f..da8641029 100644 |
1280 |
| ---- a/reference/execution/execution/env/query.md |
1281 |
| -+++ b/reference/execution/execution/env/query.md |
1282 |
| -@@ -70,7 +70,7 @@ int main() |
1283 |
| - * ex::env[link ../env.md] |
1284 |
| - * ex::prop[link ../prop.md] |
1285 |
| - * std::get_allocator[link get_allocator.md.nolink] |
1286 |
| --* std::get_stop_token[link get_stop_token.md.nolink] |
1287 |
| -+* std::get_stop_token[link ../../get_stop_token.md] |
1288 |
| - * std::never_stop_token[link /reference/stop_token/never_stop_token.md] |
1289 |
| - * std::stop_token[link /reference/stop_token/stop_token.md] |
1290 |
| - |
1291 |
| -</code></pre></summary> |
1292 |
| - |
1293 |
| - <author> |
1294 |
| - <name>yoh</name> |
1295 |
| - <email>kawasaki.liamg@gmail.com</email> |
1296 |
| - </author> |
1297 |
| - </entry> |
1298 |
| - |
1299 |
| - <entry> |
1300 |
| - <title>get_completion_scheduler -- execution: get_stop_token,stop_token_of_t (#1384)</title> |
1301 |
| - <link href="https://cpprefjp.github.io/reference/execution/execution/get_completion_scheduler.html"/> |
1302 |
| - <id>d512f5b175382335a2becad9da0311a9de99dc42:reference/execution/execution/get_completion_scheduler.md</id> |
1303 |
| - <updated>2025-04-21T18:43:28+09:00</updated> |
1304 |
| - |
1305 |
| - <summary type="html"><pre><code>diff --git a/reference/execution/execution/get_completion_scheduler.md b/reference/execution/execution/get_completion_scheduler.md |
1306 |
| -index 91fbdf5c1..6dc738598 100644 |
1307 |
| ---- a/reference/execution/execution/get_completion_scheduler.md |
1308 |
| -+++ b/reference/execution/execution/get_completion_scheduler.md |
1309 |
| -@@ -11,7 +11,7 @@ namespace std::execution { |
1310 |
| - |
1311 |
| - template&lt;class CPO&gt; |
1312 |
| - constexpr get_completion_scheduler_t&lt;CPO&gt; get_completion_scheduler{}; |
1313 |
| -- } |
1314 |
| -+} |
1315 |
| - ``` |
1316 |
| - * unspecified[italic] |
1317 |
| - |
1318 |
| -</code></pre></summary> |
1319 |
| - |
1320 |
| - <author> |
1321 |
| - <name>yoh</name> |
1322 |
| - <email>kawasaki.liamg@gmail.com</email> |
1323 |
| - </author> |
1324 |
| - </entry> |
1325 |
| - |
1326 |
| - <entry> |
1327 |
| - <title>prop -- execution: get_stop_token,stop_token_of_t (#1384)</title> |
1328 |
| - <link href="https://cpprefjp.github.io/reference/execution/execution/prop.html"/> |
1329 |
| - <id>d512f5b175382335a2becad9da0311a9de99dc42:reference/execution/execution/prop.md</id> |
1330 |
| - <updated>2025-04-21T18:43:28+09:00</updated> |
1331 |
| - |
1332 |
| - <summary type="html"><pre><code>diff --git a/reference/execution/execution/prop.md b/reference/execution/execution/prop.md |
1333 |
| -index 893422d1f..e3790653f 100644 |
1334 |
| ---- a/reference/execution/execution/prop.md |
1335 |
| -+++ b/reference/execution/execution/prop.md |
1336 |
| -@@ -49,7 +49,7 @@ int main() |
1337 |
| - } |
1338 |
| - ``` |
1339 |
| - * ex::prop[color ff0000] |
1340 |
| --* std::get_stop_token[link get_stop_token.md.nolink] |
1341 |
| -+* std::get_stop_token[link ../get_stop_token.md] |
1342 |
| - * std::never_stop_token[link /reference/stop_token/never_stop_token.md] |
1343 |
| - |
1344 |
| - ### 出力 |
1345 |
| -</code></pre></summary> |
1346 |
| - |
1347 |
| - <author> |
1348 |
| - <name>yoh</name> |
1349 |
| - <email>kawasaki.liamg@gmail.com</email> |
1350 |
| - </author> |
1351 |
| - </entry> |
1352 |
| - |
1353 |
| - <entry> |
1354 |
| - <title>get_stop_token -- execution: get_stop_token,stop_token_of_t (#1384)</title> |
1355 |
| - <link href="https://cpprefjp.github.io/reference/execution/get_stop_token.html"/> |
1356 |
| - <id>d512f5b175382335a2becad9da0311a9de99dc42:reference/execution/get_stop_token.md</id> |
1357 |
| - <updated>2025-04-21T18:43:28+09:00</updated> |
1358 |
| - |
1359 |
| - <summary type="html"><pre><code>diff --git a/reference/execution/get_stop_token.md b/reference/execution/get_stop_token.md |
1360 |
| -new file mode 100644 |
1361 |
| -index 000000000..53e7d91fc |
1362 |
| ---- /dev/null |
1363 |
| -+++ b/reference/execution/get_stop_token.md |
1364 |
| -@@ -0,0 +1,79 @@ |
1365 |
| -+# get_stop_token |
1366 |
| -+* execution[meta header] |
1367 |
| -+* cpo[meta id-type] |
1368 |
| -+* std[meta namespace] |
1369 |
| -+* cpp26[meta cpp] |
1370 |
| -+ |
1371 |
| -+```cpp |
1372 |
| -+namespace std { |
1373 |
| -+ struct get_stop_token_t { unspecified }; |
1374 |
| -+ constexpr get_stop_token_t get_stop_token{}; |
1375 |
| -+} |
1376 |
| -+``` |
1377 |
| -+* unspecified[italic] |
1378 |
| -+ |
1379 |
| -+## 概要 |
1380 |
| -+`get_stop_token`は、[クエリ可能オブジェクト](queryable.md)から[停止トークン](/reference/stop_token/stoppable_token.md)を取得する[クエリオブジェクト](queryable.md)である。 |
1381 |
| -+ |
1382 |
| -+コア定数式[`forwarding_query`](forwarding_query.md.nolink)`(get_stop_token)`は`true`値を返す。 |
1383 |
| -+ |
1384 |
| -+ |
1385 |
| -+## 効果 |
1386 |
| -+式`get_stop_token(env)`は下記と等価であり、[`stoppable_token`](/reference/stop_token/stoppable_token.md)を満たす型の値となる。 |
1387 |
| -+ |
1388 |
| -+- 引数`env`がconst修飾された`cenv`を用いて、式`cenv.query(get_stop_token)`が有効であればその値。 |
1389 |
| -+- そうでなければ、[`never_stop_token{}`](/reference/stop_token/never_stop_token.md) |
1390 |
| -+ |
1391 |
| -+ |
1392 |
| -+## 例外 |
1393 |
| -+投げない |
1394 |
| -+ |
1395 |
| -+ |
1396 |
| -+## カスタマイゼーションポイント |
1397 |
| -+const修飾[クエリ可能オブジェクト](queryable.md)`env`に対して式`env.query(get_stop_token)`が呼び出される。 |
1398 |
| -+このとき、`noexcept(cenv.query(get_stop_token)) == true`であること。 |
1399 |
| -+ |
1400 |
| -+ |
1401 |
| -+## 例 |
1402 |
| -+```cpp |
1403 |
| -+#include &lt;concepts&gt; |
1404 |
| -+#include &lt;stop_token&gt; |
1405 |
| -+#include &lt;execution&gt; |
1406 |
| -+namespace ex = std::execution; |
1407 |
| -+ |
1408 |
| -+int main() |
1409 |
| -+{ |
1410 |
| -+ // just Senderは停止トークンを持たない |
1411 |
| -+ ex::sender auto sndr = ex::just(42); |
1412 |
| -+ auto token = std::get_stop_token(ex::get_env(sndr)); |
1413 |
| -+ static_assert(std::same_as&lt;decltype(token), std::never_stop_token&gt;); |
1414 |
| -+} |
1415 |
| -+``` |
1416 |
| -+* std::get_stop_token[color ff0000] |
1417 |
| -+* ex::sender[link execution/sender.md] |
1418 |
| -+* ex::just[link execution/just.md.nolink] |
1419 |
| -+* ex::get_env[link execution/get_env.md] |
1420 |
| -+* std::never_stop_token[link /reference/stop_token/never_stop_token.md] |
1421 |
| -+ |
1422 |
| -+### 出力 |
1423 |
| -+``` |
1424 |
| -+``` |
1425 |
| -+ |
1426 |
| -+ |
1427 |
| -+## バージョン |
1428 |
| -+### 言語 |
1429 |
| -+- C++26 |
1430 |
| -+ |
1431 |
| -+### 処理系 |
1432 |
| -+- [Clang](/implementation.md#clang): ?? |
1433 |
| -+- [GCC](/implementation.md#gcc): ?? |
1434 |
| -+- [ICC](/implementation.md#icc): ?? |
1435 |
| -+- [Visual C++](/implementation.md#visual_cpp): ?? |
1436 |
| -+ |
1437 |
| -+ |
1438 |
| -+## 関連項目 |
1439 |
| -+- [`stoppable_token`](/reference/stop_token/stoppable_token.md) |
1440 |
| -+ |
1441 |
| -+ |
1442 |
| -+## 参照 |
1443 |
| -+- [P2300R10 `std::execution`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2300r10.html) |
1444 |
| -</code></pre></summary> |
1445 |
| - |
1446 |
| - <author> |
1447 |
| - <name>yoh</name> |
1448 |
| - <email>kawasaki.liamg@gmail.com</email> |
1449 |
| - </author> |
1450 |
| - </entry> |
1451 |
| - |
1452 |
| - <entry> |
1453 |
| - <title>stop_token_of_t -- execution: get_stop_token,stop_token_of_t (#1384)</title> |
1454 |
| - <link href="https://cpprefjp.github.io/reference/execution/stop_token_of_t.html"/> |
1455 |
| - <id>d512f5b175382335a2becad9da0311a9de99dc42:reference/execution/stop_token_of_t.md</id> |
1456 |
| - <updated>2025-04-21T18:43:28+09:00</updated> |
1457 |
| - |
1458 |
| - <summary type="html"><pre><code>diff --git a/reference/execution/stop_token_of_t.md b/reference/execution/stop_token_of_t.md |
1459 |
| -new file mode 100644 |
1460 |
| -index 000000000..459870901 |
1461 |
| ---- /dev/null |
1462 |
| -+++ b/reference/execution/stop_token_of_t.md |
1463 |
| -@@ -0,0 +1,35 @@ |
1464 |
| -+# stop_token_of_t |
1465 |
| -+* execution[meta header] |
1466 |
| -+* std[meta namespace] |
1467 |
| -+* type-alias[meta id-type] |
1468 |
| -+* cpp26[meta cpp] |
1469 |
| -+ |
1470 |
| -+```cpp |
1471 |
| -+namespace std { |
1472 |
| -+ template&lt;class T&gt; |
1473 |
| -+ using stop_token_of_t = remove_cvref_t&lt;decltype(get_stop_token(declval&lt;T&gt;()))&gt;; |
1474 |
| -+} |
1475 |
| -+``` |
1476 |
| -+* get_stop_token[link get_stop_token.md] |
1477 |
| -+ |
1478 |
| -+## 概要 |
1479 |
| -+[クエリ可能オブジェクト型](queryable.md)`T`から[停止トークン型](/reference/stop_token/stoppable_token.md)を取得する。 |
1480 |
| -+ |
1481 |
| -+ |
1482 |
| -+## バージョン |
1483 |
| -+### 言語 |
1484 |
| -+- C++26 |
1485 |
| -+ |
1486 |
| -+### 処理系 |
1487 |
| -+- [Clang](/implementation.md#clang): ?? |
1488 |
| -+- [GCC](/implementation.md#gcc): ?? |
1489 |
| -+- [ICC](/implementation.md#icc): ?? |
1490 |
| -+- [Visual C++](/implementation.md#visual_cpp): ?? |
1491 |
| -+ |
1492 |
| -+ |
1493 |
| -+## 関連項目 |
1494 |
| -+- [`get_stop_token`](get_stop_token.md) |
1495 |
| -+ |
1496 |
| -+ |
1497 |
| -+## 参照 |
1498 |
| -+- [P2300R10 `std::execution`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2300r10.html) |
1499 | 1235 | </code></pre></summary>
|
1500 | 1236 |
|
1501 | 1237 | <author>
|
|
0 commit comments