|
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>2026-01-12T14:56:46.870185</updated> |
6 | | - <id>70fd70f7-fd6f-4e6c-98e1-de52cac362bc</id> |
| 5 | + <updated>2026-01-13T02:02:30.877805</updated> |
| 6 | + <id>4653214b-959a-465a-adf5-f9ee9436dc8c</id> |
7 | 7 |
|
8 | 8 |
|
| 9 | + <entry> |
| 10 | + <title>allocator_traits -- リンク切れを修正</title> |
| 11 | + <link href="https://cpprefjp.github.io/reference/memory/allocator_traits.html"/> |
| 12 | + <id>ca315ba7b089f5a8895fc1e0472c1e83c1ab3c07:reference/memory/allocator_traits.md</id> |
| 13 | + <updated>2026-01-13T10:58:29+09:00</updated> |
| 14 | + |
| 15 | + <summary type="html"><pre><code>diff --git a/reference/memory/allocator_traits.md b/reference/memory/allocator_traits.md |
| 16 | +index 0dbfbf3c2..0b4df91c7 100644 |
| 17 | +--- a/reference/memory/allocator_traits.md |
| 18 | ++++ b/reference/memory/allocator_traits.md |
| 19 | +@@ -208,7 +208,7 @@ int main() { |
| 20 | + |
| 21 | + ## 参照 |
| 22 | + - [Allocators@C++11 - Cryolite](http://www.slideshare.net/Cryolite/allocator11final) |
| 23 | +-- [A visitor’s guide to C++ allocators](https://rawgit.com/google/cxx-std-draft/allocator-paper/allocator_user_guide.html) |
| 24 | ++- [A visitor’s guide to C++ allocators](https://htmlpreview.github.io/?https://github.com/google/cxx-std-draft/blob/allocator-paper/allocator_user_guide.html) |
| 25 | + - [N2982 Allocators post Removal of C++ Concepts (Rev 1)](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2982.pdf) |
| 26 | + - [AllocatorAwareContainer: Introduction and pitfalls of `propagate_on_container_XXX` defaults](https://www.foonathan.net/2015/10/allocatorawarecontainer-propagation-pitfalls/) |
| 27 | + - [N4258 Cleaning-up noexcept in the Library, Rev 3](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4258.pdf) |
| 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>connect -- execution/task/connect: fix meta id-type</title> |
11 | 38 | <link href="https://cpprefjp.github.io/reference/execution/execution/task/connect.html"/> |
@@ -1035,159 +1062,6 @@ index 000000000..32771f880 |
1035 | 1062 | + |
1036 | 1063 | +## 参照 |
1037 | 1064 | +- [P3552R3 Add a Coroutine Task Type](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3552r3.html) |
1038 | | -</code></pre></summary> |
1039 | | - |
1040 | | - <author> |
1041 | | - <name>yoh</name> |
1042 | | - <email>kawasaki.liamg@gmail.com</email> |
1043 | | - </author> |
1044 | | - </entry> |
1045 | | - |
1046 | | - <entry> |
1047 | | - <title>execution -- execution: P3552R3 inline_scheduler(#1521)</title> |
1048 | | - <link href="https://cpprefjp.github.io/reference/execution/execution.html"/> |
1049 | | - <id>01edba72875b56c7dbb55d7aab7458b9149b1848:reference/execution/execution.md</id> |
1050 | | - <updated>2026-01-11T22:22:31+09:00</updated> |
1051 | | - |
1052 | | - <summary type="html"><pre><code>diff --git a/reference/execution/execution.md b/reference/execution/execution.md |
1053 | | -index b6af20ac8..5c501efcb 100644 |
1054 | | ---- a/reference/execution/execution.md |
1055 | | -+++ b/reference/execution/execution.md |
1056 | | -@@ -161,7 +161,7 @@ Senderコンシューマは名前空間 `std::this_thread` および名前空間 |
1057 | | - | [`execution::as_awaitable`](execution/as_awaitable.md) | Senderを[Awaitable型](/lang/cpp20/coroutines.md)へ変換 (customization point object) | C++26 | |
1058 | | - | [`execution::with_awaitable_senders`](execution/with_awaitable_senders.md) | [Promise型](/lang/cpp20/coroutines.md)の基底クラス (class template) | C++26 | |
1059 | | - | [`execution::affine_on`](execution/affine_on.md.nolink) | (customization point object) | C++26 | |
1060 | | --| [`execution::inline_scheduler`](execution/inline_scheduler.md.nolink) | インラインScheduler (class) | C++26 | |
1061 | | -+| [`execution::inline_scheduler`](execution/inline_scheduler.md) | インラインScheduler (class) | C++26 | |
1062 | | - | [`execution::task_scheduler`](execution/task_scheduler.md.nolink) | 型消去タスクScheduler (class) | C++26 | |
1063 | | - | [`execution::with_error`](execution/with_error.md.nolink) | コルーチンからのエラー完了 (class template) | C++26 | |
1064 | | - | [`execution::change_coroutine_scheduler`](execution/change_coroutine_scheduler.md.nolink) | コルーチンのScheduler変更 (class template) | C++26 | |
1065 | | -</code></pre></summary> |
1066 | | - |
1067 | | - <author> |
1068 | | - <name>yoh</name> |
1069 | | - <email>kawasaki.liamg@gmail.com</email> |
1070 | | - </author> |
1071 | | - </entry> |
1072 | | - |
1073 | | - <entry> |
1074 | | - <title>inline_scheduler -- execution: P3552R3 inline_scheduler(#1521)</title> |
1075 | | - <link href="https://cpprefjp.github.io/reference/execution/execution/inline_scheduler.html"/> |
1076 | | - <id>01edba72875b56c7dbb55d7aab7458b9149b1848:reference/execution/execution/inline_scheduler.md</id> |
1077 | | - <updated>2026-01-11T22:22:31+09:00</updated> |
1078 | | - |
1079 | | - <summary type="html"><pre><code>diff --git a/reference/execution/execution/inline_scheduler.md b/reference/execution/execution/inline_scheduler.md |
1080 | | -new file mode 100644 |
1081 | | -index 000000000..ae23f5285 |
1082 | | ---- /dev/null |
1083 | | -+++ b/reference/execution/execution/inline_scheduler.md |
1084 | | -@@ -0,0 +1,106 @@ |
1085 | | -+# inline_scheduler |
1086 | | -+* execution[meta header] |
1087 | | -+* class[meta id-type] |
1088 | | -+* std::execution[meta namespace] |
1089 | | -+* cpp26[meta cpp] |
1090 | | -+ |
1091 | | -+```cpp |
1092 | | -+namespace std::execution { |
1093 | | -+ class inline_scheduler { |
1094 | | -+ class inline-sender; // exposition only |
1095 | | -+ template &lt;receiver R&gt; |
1096 | | -+ class inline-state; // exposition only |
1097 | | -+ |
1098 | | -+ public: |
1099 | | -+ using scheduler_concept = scheduler_t; |
1100 | | -+ |
1101 | | -+ constexpr inline-sender schedule() noexcept { return {}; } |
1102 | | -+ constexpr bool operator==(const inline_scheduler&amp;) const noexcept = default; |
1103 | | -+ }; |
1104 | | -+} |
1105 | | -+``` |
1106 | | -+* scheduler_t[link scheduler.md] |
1107 | | -+* inline-sender[italic] |
1108 | | -+* inline-state[italic] |
1109 | | -+ |
1110 | | -+## 概要 |
1111 | | -+`inline_scheduler`は、インラインでタスクを実行する[Scheduler](scheduler.md)である。 |
1112 | | -+ |
1113 | | -+[`schedule`](schedule.md)操作により得られる[Sender](sender.md)と[Receiver](receiver.md)を[接続(connect)](connect.md)した[OperationState](operation_state.md)は、[開始(start)](start.md)したスレッド上で即座に[値完了](set_value.md)する。 |
1114 | | -+ |
1115 | | -+`inline_scheduler`型の全オブジェクトは等しい。 |
1116 | | -+ |
1117 | | -+ |
1118 | | -+## クラス仕様 |
1119 | | -+説明専用のクラス`inline-sender`は[`sender`](sender.md)を満たす。[`completion_signatures_of_t`](completion_signatures_of_t.md)`&lt;inline-sender&gt;`は、[`completion_signatures`](completion_signatures.md)`&lt;`[`set_value_t`](set_value.md)`()&gt;`となる。 |
1120 | | -+ |
1121 | | -+説明用の`sndr`を`inline-sender`型の式とする。`CS`を[`completion_signatures`](completion_signatures.md)`&lt;`[`set_value_t`](set_value.md)`()&gt;`としたとき、`rcvr`を[`receiver_of`](receiver_of.md)`&lt;decltype((rcvr)), CS&gt;`が`true`となる式とする。 |
1122 | | -+ |
1123 | | -+- 式[`connect`](connect.md)`(sndr, rcvr)`の型は`line-state&lt;remove_cvref_t&lt;decltype((rcvr))&gt;&gt;`であり、式`((void)sndr, auto(rcvr))`が潜在的に例外送出(potentially-throwing)するときに限って潜在的に例外送出する。 |
1124 | | -+- 式[`get_completion_scheduler`](get_completion_scheduler.md)`&lt;`[`set_value_t`](set_value.md)`&gt;(`[`get_env`](get_env.md)`(sndr))`の型は`inline_scheduler`であり、式[`get_env`](get_env.md)`(sndr)`が潜在的に例外送出(potentially-throwing)するときに限って潜在的に例外送出する。 |
1125 | | -+ |
1126 | | -+説明用の`o`を`inline-state&lt;Rcvr&gt;`型の非const左辺値とし、`REC(o)`を`o`を返す[接続(connect)](connect.md)呼び出しへ渡した式`rcvr`で初期化された`Rcvr`型の非const左辺値参照とする。 |
1127 | | -+ |
1128 | | -+- `REC(o)`が参照するオブジェクトは、`o`が参照するオブジェクトの生存期間(lifetime)で有効である。 |
1129 | | -+- 式[`start`](start.md)`(o)`は、[`set_value`](set_value.md)`(`[`std::move`](/reference/utility/move.md)`(REC(o)))`と等価。 |
1130 | | -+ |
1131 | | -+ |
1132 | | -+## メンバ関数 |
1133 | | -+ |
1134 | | -+| 名前 | 説明 | 対応バージョン | |
1135 | | -+|------|------|----------------| |
1136 | | -+| `schedule` | `inline-sender`を返す | C++26 | |
1137 | | -+ |
1138 | | -+## メンバ型 |
1139 | | -+ |
1140 | | -+| 名前 | 説明 | 対応バージョン | |
1141 | | -+|------|------|----------------| |
1142 | | -+| `scheduler_concept` | [`scheduler_t`](scheduler.md) | C++26 | |
1143 | | -+ |
1144 | | -+ |
1145 | | -+## 例 |
1146 | | -+```cpp example |
1147 | | -+#include &lt;execution&gt; |
1148 | | -+#include &lt;print&gt; |
1149 | | -+namespace ex = std::execution; |
1150 | | -+ |
1151 | | -+int main() |
1152 | | -+{ |
1153 | | -+ ex::scheduler auto sch = ex::inline_scheduler{}; |
1154 | | -+ |
1155 | | -+ std::this_thread::sync_wait( |
1156 | | -+ ex::schedule(sch) |
1157 | | -+ | ex::then([]{ std::println(&#34;task&#34;); }) |
1158 | | -+ ); |
1159 | | -+} |
1160 | | -+``` |
1161 | | -+* ex::inline_scheduler[color ff0000] |
1162 | | -+* ex::scheduler[link scheduler.md] |
1163 | | -+* ex::schedule[link schedule.md] |
1164 | | -+* ex::then[link then.md] |
1165 | | -+* std::this_thread::sync_wait[link ../this_thread/sync_wait.md] |
1166 | | -+ |
1167 | | -+### 出力 |
1168 | | -+``` |
1169 | | -+task |
1170 | | -+``` |
1171 | | -+ |
1172 | | -+ |
1173 | | -+## バージョン |
1174 | | -+### 言語 |
1175 | | -+- C++26 |
1176 | | -+ |
1177 | | -+### 処理系 |
1178 | | -+- [Clang](/implementation.md#clang): ?? |
1179 | | -+- [GCC](/implementation.md#gcc): ?? |
1180 | | -+- [ICC](/implementation.md#icc): ?? |
1181 | | -+- [Visual C++](/implementation.md#visual_cpp): ?? |
1182 | | -+ |
1183 | | -+ |
1184 | | -+## 関連項目 |
1185 | | -+- [`execution::scheduler`](scheduler.md) |
1186 | | -+ |
1187 | | -+ |
1188 | | -+## 参照 |
1189 | | -+- [P3552R3 Add a Coroutine Task Type](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3552r3.html) |
1190 | | -+- C++now 2025, [Getting The Lazy Task Done](https://schedule.cppnow.org/wp-content/uploads/2025/03/Getting_The_Lazy_Task_Done.pdf) |
1191 | 1065 | </code></pre></summary> |
1192 | 1066 |
|
1193 | 1067 | <author> |
|
0 commit comments