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-06-23T14:50:03.460685 </updated >
6
- <id >725fe437-5830-451a-a95b-8b0f81177944 </id >
5
+ <updated >2025-06-24T02:52:13.964295 </updated >
6
+ <id >9f339ce8-cc4f-4e81-8ba9-940928365a5f </id >
7
7
8
8
9
+ <entry >
10
+ <title >構造化束縛でパックを導入できるようにする [P1061R10] -- コード例のエラーを修正 #1456</title >
11
+ <link href =" https://cpprefjp.github.io/lang/cpp26/structured_bindings_can_introduce_a_pack.html" />
12
+ <id >22f113ec79b132299ea4ef236affc14c0adc201d:lang/cpp26/structured_bindings_can_introduce_a_pack.md</id >
13
+ <updated >2025-06-24T11:47:43+09:00</updated >
14
+
15
+ <summary type =" html" >< pre>< code> diff --git a/lang/cpp26/structured_bindings_can_introduce_a_pack.md b/lang/cpp26/structured_bindings_can_introduce_a_pack.md
16
+ index 5b9018db0..f6debe55b 100644
17
+ --- a/lang/cpp26/structured_bindings_can_introduce_a_pack.md
18
+ +++ b/lang/cpp26/structured_bindings_can_introduce_a_pack.md
19
+ @@ -53,14 +53,21 @@ constexpr decltype(auto) apply(F & amp;& amp;f, Tuple & amp;& amp;t)
20
+ C++26での実装:
21
+
22
+ ```cpp
23
+ +namespace detail {
24
+ + template & lt;class A, class B& gt;
25
+ + using override_ref = std::conditional_t& lt;std::is_rvalue_reference_v& lt;A& amp;& amp;& gt;, B& amp;& amp;, B& amp;& gt;;
26
+ +}
27
+ +
28
+ template & lt;class F, class Tuple& gt;
29
+ constexpr decltype(auto) apply(F & amp;& amp;f, Tuple & amp;& amp;t)
30
+ {
31
+ auto& amp;& amp; [...elems] = t;
32
+ return std::invoke(std::forward& lt;F& gt;(f),
33
+ - std::forward_like& lt;Tuple, decltype(elems)& gt;(elems)...);
34
+ + static_cast& lt;detail::override_ref& lt;Tuple, decltype(elems)& gt;& gt;(elems)...);
35
+ }
36
+ ```
37
+ +* std::conditional_t[link /reference/type_traits/conditional.md]
38
+ +* std::is_rvalue_reference_v[link /reference/type_traits/is_rvalue_reference.md]
39
+ * std::invoke[link /reference/functional/invoke.md]
40
+
41
+
42
+ < /code>< /pre> </summary >
43
+
44
+ <author >
45
+ <name >Raclamusi</name >
46
+
47
+ </author >
48
+ </entry >
49
+
9
50
<entry >
10
51
<title >get -- get(const tuple&& ) の C++ バージョンを修正</title >
11
52
<link href =" https://cpprefjp.github.io/reference/tuple/tuple/get.html" />
@@ -943,31 +984,4 @@ index 5112a379a..a949bde56 100644
943
984
</author >
944
985
</entry >
945
986
946
- <entry >
947
- <title >read_env -- execution/read_env: 概要説明の微調整</title >
948
- <link href =" https://cpprefjp.github.io/reference/execution/execution/read_env.html" />
949
- <id >8d5640384d41e916d49abd375ebd94ffcda1708c:reference/execution/execution/read_env.md</id >
950
- <updated >2025-06-19T14:55:12+09:00</updated >
951
-
952
- <summary type =" html" >< pre>< code> diff --git a/reference/execution/execution/read_env.md b/reference/execution/execution/read_env.md
953
- index db4146dee..9d278cfa3 100644
954
- --- a/reference/execution/execution/read_env.md
955
- +++ b/reference/execution/execution/read_env.md
956
- @@ -14,7 +14,7 @@ namespace std::execution {
957
- ## 概要
958
- `read_env`は、非同期動作の[開始(start)](start.md)時に接続先[Receiver](receiver.md)の[環境](../queryable.md)に対して[クエリオブジェクト](../queryable.md)で問い合わせ、読み取った値を[値完了関数](set_value.md)で送信するSenderファクトリである。
959
-
960
- -クエリオブジェクトによるReceiver環境への問い合わせは`read_env`[Sender](sender.md)の構築時ではなく、Receiverと接続されたのち非同期動作が開始されるタイミングまで遅延される。
961
- +クエリオブジェクトによるReceiver環境への問い合わせは`read_env`[Sender](sender.md)構築時やReceiver[接続(connect)](connect.md)ではなく、非同期動作が開始されるタイミングまで遅延される。
962
- [`let_value`](let_value.md)Senderアダプタと組み合わせたり、[Sender Awaitableなコルーチン](with_awaitable_senders.md)での`co_await`式によって、[Scheduler](get_scheduler.md)や[停止トークン](../get_stop_token.md)を読み取ることができる。
963
-
964
-
965
- < /code>< /pre> </summary >
966
-
967
- <author >
968
- <name >yoh</name >
969
-
970
- </author >
971
- </entry >
972
-
973
987
</feed >
0 commit comments