Skip to content

Commit 655581d

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent d174804 commit 655581d

File tree

3 files changed

+33
-59
lines changed

3 files changed

+33
-59
lines changed

reference/stop_token/stoppable-source.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@
188188

189189
<p class="text-right"><small>
190190
最終更新日時(UTC):
191-
<span itemprop="datePublished" content="2025-04-07T09:24:46">
192-
2025年04月07日 09時24分46秒
191+
<span itemprop="datePublished" content="2025-09-20T01:37:34">
192+
2025年09月20日 01時37分34秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -213,7 +213,7 @@
213213
<div class="col-sm-12 content-body">
214214

215215
<div class="identifier-type">concept</div><div class="header">&lt;stop_token&gt;</div><h1 itemprop="name"><span class="namespace" title="namespace std">std::</span><span class="token">stoppable-source</span><span class="cpp cpp26" title="C++26で追加">(C++26)</span></h1>
216-
<div itemprop="articleBody"><p><div class="codehilite"><pre><span></span><code><span class="n">mplate</span><span class="o">&lt;</span><span class="k">class</span> <span class="nc">Source</span><span class="o">&gt;</span>
216+
<div itemprop="articleBody"><p><div class="codehilite"><pre><span></span><code><span class="k">template</span><span class="o">&lt;</span><span class="k">class</span> <span class="nc">Source</span><span class="o">&gt;</span>
217217
<span class="n">concept</span> <span class="n">stoppable</span><span class="o">-</span><span class="n">source</span> <span class="o">=</span>
218218
<span class="n">requires</span> <span class="p">(</span><span class="n">Source</span><span class="o">&amp;</span> <span class="n">src</span><span class="p">,</span> <span class="k">const</span> <span class="n">Source</span> <span class="n">csrc</span><span class="p">)</span> <span class="p">{</span>
219219
<span class="p">{</span> <span class="n">csrc</span><span class="p">.</span><span class="n">get_token</span><span class="p">()</span> <span class="p">}</span> <span class="o">-&gt;</span> <span class="n"><a href="stoppable_token.html">stoppable_token</a></span><span class="p">;</span>

rss.xml

Lines changed: 29 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,37 @@
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">&lt;pre&gt;&lt;code&gt;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&amp;lt;class Source&amp;gt;
24+
+template&amp;lt;class Source&amp;gt;
25+
concept stoppable-source =
26+
requires (Source&amp;amp; src, const Source csrc) {
27+
{ csrc.get_token() } -&amp;gt; stoppable_token;
28+
&lt;/code&gt;&lt;/pre&gt;</summary>
29+
30+
<author>
31+
<name>yoh</name>
32+
<email>[email protected]</email>
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">&lt;pre&gt;&lt;code&gt;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-
&amp;lt;!-- last lang caution --&amp;gt;
2243-
2244-
## 概要
2245-
-C++26では、構造化束縛でタプルを分解する際に、パックで受け取れるようになる。
2246-
+C++26では、構造化束縛でタプルを分解する際に、パックで受け取れるようになる。この記法はテンプレート内でのみ利用できる。
2247-
2248-
```cpp
2249-
std::tuple&amp;lt;X, Y, Z&amp;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 &amp;lt;class&amp;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-
&lt;/code&gt;&lt;/pre&gt;</summary>
2277-
2278-
<author>
2279-
<name>yoh</name>
2280-
<email>[email protected]</email>
2281-
</author>
2282-
</entry>
2283-
22842258
</feed>

sitemap.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37222,7 +37222,7 @@
3722237222

3722337223
<url>
3722437224
<loc>https://cpprefjp.github.io/reference/stop_token/stoppable-source.html</loc>
37225-
<lastmod>2025-09-18T10:20:35+09:00</lastmod>
37225+
<lastmod>2025-09-20T10:37:34+09:00</lastmod>
3722637226
<changefreq>daily</changefreq>
3722737227
<priority>0.7</priority>
3722837228
</url>

0 commit comments

Comments
 (0)