Skip to content

Commit d3e2162

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 84cc4ae commit d3e2162

File tree

17 files changed

+2633
-115
lines changed

17 files changed

+2633
-115
lines changed

reference/stop_token.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@
176176

177177
<p class="text-right"><small>
178178
最終更新日時(UTC):
179-
<span itemprop="datePublished" content="2025-04-06T13:18:59">
180-
2025年04月06日 13時18分59秒
179+
<span itemprop="datePublished" content="2025-04-07T08:11:27">
180+
2025年04月07日 08時11分27秒
181181
</span>
182182
<br/>
183183
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -204,7 +204,7 @@
204204
<div itemprop="articleBody"><p><code>&lt;stop_token&gt;</code>ヘッダは、マルチスレッド処理や非同期処理おける停止要求の状態 <code>停止状態</code> を扱うクラスを定義する。</p>
205205
<ul>
206206
<li><code><a href="stop_token/stop_token.html">stop_token</a></code>, <code><a href="stop_token/stop_source.html">stop_source</a></code>, <code><a href="stop_token/stop_callback.html">stop_callback</a></code>は停止状態を共有所有する。最後に破棄されたオブジェクトが停止状態を自動的に解放する。</li>
207-
<li><code><a href="stop_token/inplace_stop_source.html">inplace_stop_source</a></code>は停止状態をメンバとして直接所有する。<code><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_token.md.nolink">inplace_stop_token</span></code><code><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_callback.md.nolink">inplace_stop_callback</span></code>は停止状態の所有には関与しない。</li>
207+
<li><code><a href="stop_token/inplace_stop_source.html">inplace_stop_source</a></code>は停止状態をメンバとして直接所有する。<code><a href="stop_token/inplace_stop_token.html">inplace_stop_token</a></code><code><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_callback.md.nolink">inplace_stop_callback</span></code>は停止状態の所有には関与しない。</li>
208208
</ul>
209209
<h2>コンセプト</h2>
210210
<table border="1" bordercolor="#888" style="border-collapse:collapse">
@@ -264,7 +264,7 @@ <h2>停止トークン</h2>
264264
<td>C++26</td>
265265
</tr>
266266
<tr>
267-
<td><code><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_token.md.nolink">inplace_stop_token</span></code></td>
267+
<td><code><a href="stop_token/inplace_stop_token.html">inplace_stop_token</a></code></td>
268268
<td><code><a href="stop_token/inplace_stop_source.html">inplace_stop_source</a></code>の停止トークン (class)</td>
269269
<td>C++26</td>
270270
</tr>

reference/stop_token/inplace_stop_source.html

Lines changed: 7 additions & 7 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-07T06:40:56">
192-
2025年04月07日 06時40分56秒
191+
<span itemprop="datePublished" content="2025-04-07T08:11:27">
192+
2025年04月07日 08時11分27秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -248,7 +248,7 @@ <h2>メンバ関数</h2>
248248
</tr>
249249
<tr>
250250
<td><code><a href="inplace_stop_source/get_token.html">get_token</a></code></td>
251-
<td>自身の停止状態を参照する<code><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_token.md.nolink">inplace_stop_token</span></code>を返す</td>
251+
<td>自身の停止状態を参照する<code><a href="inplace_stop_token.html">inplace_stop_token</a></code>を返す</td>
252252
<td>C++26</td>
253253
</tr>
254254
<tr>
@@ -287,17 +287,17 @@ <h2>例</h2>
287287
<span class="kt">int</span> <span class="nf">main</span><span class="p">()</span>
288288
<span class="p">{</span>
289289
<span class="n"><span style="color:#ff0000">std::inplace_stop_source</span></span> <span class="n">ss</span><span class="p">;</span>
290-
<span class="n"><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_token.md.nolink">std::inplace_stop_token</span></span> <span class="n">st</span> <span class="o">=</span> <span class="n">ss</span><span class="p">.</span><span class="n"><a href="inplace_stop_source/get_token.html">get_token()</a></span><span class="p">;</span>
290+
<span class="n"><a href="inplace_stop_token.html">std::inplace_stop_token</a></span> <span class="n">st</span> <span class="o">=</span> <span class="n">ss</span><span class="p">.</span><span class="n"><a href="inplace_stop_source/get_token.html">get_token()</a></span><span class="p">;</span>
291291

292292
<span class="kt">bool</span> <span class="n">invoked</span> <span class="o">=</span> <span class="nb">false</span><span class="p">;</span>
293293
<span class="n"><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_callback.md.nolink">std::inplace_stop_callback</span></span> <span class="n">cb</span> <span class="p">{</span><span class="n">st</span><span class="p">,</span> <span class="p">[</span><span class="o">&amp;</span><span class="p">]</span> <span class="p">{</span> <span class="n">invoked</span> <span class="o">=</span> <span class="nb">true</span><span class="p">;</span> <span class="p">}};</span>
294294

295-
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n">st</span><span class="p">.</span><span class="n"><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_token/stop_requested.md.nolink">stop_requested()</span></span> <span class="o">==</span> <span class="nb">false</span><span class="p">);</span>
295+
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n">st</span><span class="p">.</span><span class="n"><a href="inplace_stop_token/stop_requested.html">stop_requested()</a></span> <span class="o">==</span> <span class="nb">false</span><span class="p">);</span>
296296
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n">invoked</span> <span class="o">==</span> <span class="nb">false</span><span class="p">);</span>
297297

298298
<span class="n">ss</span><span class="p">.</span><span class="n"><a href="inplace_stop_source/request_stop.html">request_stop()</a></span><span class="p">;</span>
299299

300-
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n">st</span><span class="p">.</span><span class="n"><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_token/stop_requested.md.nolink">stop_requested()</span></span> <span class="o">==</span> <span class="nb">true</span><span class="p">);</span>
300+
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n">st</span><span class="p">.</span><span class="n"><a href="inplace_stop_token/stop_requested.html">stop_requested()</a></span> <span class="o">==</span> <span class="nb">true</span><span class="p">);</span>
301301
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n">invoked</span> <span class="o">==</span> <span class="nb">true</span><span class="p">);</span>
302302
<span class="p">}</span>
303303
</code></pre></div>
@@ -318,7 +318,7 @@ <h3>処理系</h3>
318318
</ul>
319319
<h2>関連項目</h2>
320320
<ul>
321-
<li><code><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_token.md.nolink">inplace_stop_token</span></code></li>
321+
<li><code><a href="inplace_stop_token.html">inplace_stop_token</a></code></li>
322322
<li><code><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_callback.md.nolink">inplace_stop_callback</span></code></li>
323323
</ul>
324324
<h2>参照</h2>

reference/stop_token/inplace_stop_source/get_token.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
<meta property="og:url" content="https://cpprefjp.github.io/reference/stop_token/inplace_stop_source/get_token.html" />
2929
<meta property="og:site_name" content="cpprefjp - C++日本語リファレンス" />
3030
<meta property="og:type" content="article" />
31-
<meta property="og:description" content="自身と停止状態を共有する[`inplace_stop_token`](../inplace_stop_token.md.nolink)を返す。" />
31+
<meta property="og:description" content="自身の停止状態を参照する[`inplace_stop_token`](../inplace_stop_token.md)を返す。" />
3232
<meta name="twitter:card" content="summary" />
3333
<meta name="twitter:title" content="inplace_stop_source::get_token - cpprefjp C++日本語リファレンス" />
3434
<meta name="twitter:url" content="https://cpprefjp.github.io/reference/stop_token/inplace_stop_source/get_token.html" />
35-
<meta name="twitter:description" content="自身と停止状態を共有する[`inplace_stop_token`](../inplace_stop_token.md.nolink)を返す。" />
35+
<meta name="twitter:description" content="自身の停止状態を参照する[`inplace_stop_token`](../inplace_stop_token.md)を返す。" />
3636

3737

3838
<link rel="alternate" type="application/atom+xml" title="Atom" href="https://cpprefjp.github.io/rss.xml" />
@@ -200,8 +200,8 @@
200200

201201
<p class="text-right"><small>
202202
最終更新日時(UTC):
203-
<span itemprop="datePublished" content="2025-04-07T06:40:56">
204-
2025年04月07日 06時40分56秒
203+
<span itemprop="datePublished" content="2025-04-07T08:11:27">
204+
2025年04月07日 08時11分27秒
205205
</span>
206206
<br/>
207207
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -225,13 +225,13 @@
225225
<div class="col-sm-12 content-body">
226226

227227
<div class="identifier-type">function</div><div class="header">&lt;stop_token&gt;</div><h1 itemprop="name"><span class="namespace" title="namespace std">std::</span><span class="class" title="class inplace_stop_source">inplace_stop_source::</span><span class="token">get_token</span><span class="cpp cpp26" title="C++26で追加">(C++26)</span></h1>
228-
<div itemprop="articleBody"><p><div class="codehilite"><pre><span></span><code><span class="k">constexpr</span> <span class="n"><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_token.md.nolink">inplace_stop_token</span></span> <span class="nf">get_token</span><span class="p">()</span> <span class="k">const</span> <span class="k">noexcept</span><span class="p">;</span>
228+
<div itemprop="articleBody"><p><div class="codehilite"><pre><span></span><code><span class="k">constexpr</span> <span class="n"><a href="../inplace_stop_token.html">inplace_stop_token</a></span> <span class="nf">get_token</span><span class="p">()</span> <span class="k">const</span> <span class="k">noexcept</span><span class="p">;</span>
229229
</code></pre></div>
230230
</p>
231231
<h2>概要</h2>
232-
<p>自身と停止状態を共有する<code><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_token.md.nolink">inplace_stop_token</span></code>を返す。</p>
232+
<p>自身の停止状態を参照する<code><a href="../inplace_stop_token.html">inplace_stop_token</a></code>を返す。</p>
233233
<h2><a class="cpprefjp-defined-word" data-desc="関数呼び出し式の評価結果となるオブジェクト・値">戻り値</a></h2>
234-
<p>自身が所有する停止状態に関連付けられた<code><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_token.md.nolink">inplace_stop_token</span></code>を返す。</p>
234+
<p>自身が所有する停止状態に関連付けられた<code><a href="../inplace_stop_token.html">inplace_stop_token</a></code>を返す。</p>
235235
<h2><a class="cpprefjp-defined-word" data-desc="問題が発生したときに、現在実行位置を過去に通過・記録した位置に戻し、文脈情報を添えて紐づけられた処理(例外ハンドラー)を呼び出す仕組み。またはその事態">例外</a></h2>
236236
<p>投げない</p>
237237
<h2>バージョン</h2>

0 commit comments

Comments
 (0)