22<feed xmlns =" http://www.w3.org/2005/Atom" >
33 <title >cpprefjp - C++日本語リファレンス</title >
44 <link href =" https://cpprefjp.github.io" />
5- <updated >2025-09-19T14:45:14.829796 </updated >
6- <id >9f8d850b-e629-443c-9c81-daa370d09488 </id >
5+ <updated >2025-09-20T01:41:46.335059 </updated >
6+ <id >edf6f0b4-3b28-46c2-b8a7-e24b0723e443 </id >
77
88
9+ <entry >
10+ <title >stoppable-source -- stop_token/stoppable-source: fix typo</title >
11+ <link href =" https://cpprefjp.github.io/reference/stop_token/stoppable-source.html" />
12+ <id >4fbde58e0fe9cf97d3bf8c510ea4cc0c5a4b1b86:reference/stop_token/stoppable-source.md</id >
13+ <updated >2025-09-20T10:37:34+09:00</updated >
14+
15+ <summary type =" html" >< pre>< code> diff --git a/reference/stop_token/stoppable-source.md b/reference/stop_token/stoppable-source.md
16+ index c258860e0..909dc19f5 100644
17+ --- a/reference/stop_token/stoppable-source.md
18+ +++ b/reference/stop_token/stoppable-source.md
19+ @@ -5,7 +5,7 @@
20+ * cpp26[meta cpp]
21+
22+ ```cpp
23+ -mplate& lt;class Source& gt;
24+ +template& lt;class Source& gt;
25+ concept stoppable-source =
26+ requires (Source& amp; src, const Source csrc) {
27+ { csrc.get_token() } -& gt; stoppable_token;
28+ < /code>< /pre> </summary >
29+
30+ <author >
31+ <name >yoh</name >
32+ 33+ </author >
34+ </entry >
35+
936 <entry >
1037 <title >fminimum -- fix link</title >
1138 <link href =" https://cpprefjp.github.io/reference/cmath/fminimum.html" />
@@ -2228,57 +2255,4 @@ index 00be421c8..03655c56e 100644
22282255 </author >
22292256 </entry >
22302257
2231- <entry >
2232- <title >構造化束縛でパックを導入できるようにする [P1061R10] -- cpp26/structured_bindings_can_introduce_a_pack: テンプレート内でのみ有効 (#1376)</title >
2233- <link href =" https://cpprefjp.github.io/lang/cpp26/structured_bindings_can_introduce_a_pack.html" />
2234- <id >76555be2403ff70e2daa8f28f7fa6cc5338c9a47:lang/cpp26/structured_bindings_can_introduce_a_pack.md</id >
2235- <updated >2025-09-12T10:46:45+09:00</updated >
2236-
2237- <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
2238- index 0eef804d9..70def2ae1 100644
2239- --- a/lang/cpp26/structured_bindings_can_introduce_a_pack.md
2240- +++ b/lang/cpp26/structured_bindings_can_introduce_a_pack.md
2241- @@ -10,17 +10,27 @@
2242- & lt;!-- last lang caution --& gt;
2243-
2244- ## 概要
2245- -C++26では、構造化束縛でタプルを分解する際に、パックで受け取れるようになる。
2246- +C++26では、構造化束縛でタプルを分解する際に、パックで受け取れるようになる。この記法はテンプレート内でのみ利用できる。
2247-
2248- ```cpp
2249- std::tuple& lt;X, Y, Z& gt; f();
2250-
2251- -auto [x, y, z] = f(); // C++23: OK, C++26: OK
2252- -auto [...xs] = f(); // C++26: OK. パックxsは長さ3でX, Y, Zが含まれる
2253- -auto [x, ...rest] = f(); // C++26: OK. xはX、パックrestは長さ2でYとZが含まれる
2254- -auto [x, y, z, ...rest] = f(); // C++26: OK. restは空のパック
2255- -auto [x, ...rest, z] = f(); // C++26: OK. xはX、パックrestは長さ1でYに対応、zはZ
2256- -auto [...a, ...b] = f(); // NG: 複数のパックは指定できない
2257- +template & lt;class& gt;
2258- +void g()
2259- +{
2260- + auto [x, y, z] = f(); // C++23: OK, C++26: OK
2261- + auto [...xs] = f(); // C++26: OK. パックxsは長さ3でX, Y, Zが含まれる
2262- + auto [x, ...rest] = f(); // C++26: OK. xはX、パックrestは長さ2でYとZが含まれる
2263- + auto [x, y, z, ...rest] = f(); // C++26: OK. restは空のパック
2264- + auto [x, ...rest, z] = f(); // C++26: OK. xはX、パックrestは長さ1でYに対応、zはZ
2265- + auto [...a, ...b] = f(); // NG: 複数のパックは指定できない
2266- +}
2267- +
2268- +void h()
2269- +{
2270- + auto [x, y, z] = f(); // C++23: OK, C++26: OK
2271- + auto [...xs] = f(); // NG: テンプレートの外では不適格となる
2272- +}
2273- ```
2274-
2275- ### std::apply()の実装改善
2276- < /code>< /pre> </summary >
2277-
2278- <author >
2279- <name >yoh</name >
2280- 2281- </author >
2282- </entry >
2283-
22842258</feed >
0 commit comments