Skip to content

Commit 84cc4ae

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

File tree

13 files changed

+1885
-99
lines changed

13 files changed

+1885
-99
lines changed

reference/chrono/make24.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ <h2>例</h2>
239239
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">12h</a></span><span class="p">,</span> <span class="nb">false</span><span class="p">)</span> <span class="o">==</span> <span class="n"><a href="duration/op_h.html">0h</a></span><span class="p">);</span>
240240

241241
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">12h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="n"><a href="duration/op_h.html">12h</a></span><span class="p">);</span>
242-
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">1h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="mi">1L</span><span class="n">tDAJlktzbhVBSaSAntyqwPvcgeOvyip</span><span class="p">);</span>
242+
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">1h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="mi">1</span><span class="n"><a href="duration/op_h.html">3h</a></span><span class="p">);</span>
243243
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">3h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="n"><a href="duration/op_h.html">15h</a></span><span class="p">);</span>
244244
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">11h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="n"><a href="duration/op_h.html">23h</a></span><span class="p">);</span>
245245
<span class="p">}</span>

reference/stop_token/inplace_stop_source.html

Lines changed: 9 additions & 9 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-06T13:18:59">
192-
2025年04月06日 13時18分59秒
191+
<span itemprop="datePublished" content="2025-04-07T06:40:56">
192+
2025年04月07日 06時40分56秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -232,7 +232,7 @@ <h2>メンバ関数</h2>
232232
</thead>
233233
<tbody>
234234
<tr>
235-
<td><code><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_source/op_constructor.md.nolink">(constructor)</span></code></td>
235+
<td><code><a href="inplace_stop_source/op_constructor.html">(constructor)</a></code></td>
236236
<td>コンストラクタ</td>
237237
<td>C++26</td>
238238
</tr>
@@ -247,17 +247,17 @@ <h2>メンバ関数</h2>
247247
<td>C++26</td>
248248
</tr>
249249
<tr>
250-
<td><code><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_source/get_token.md.nolink">get_token</span></code></td>
250+
<td><code><a href="inplace_stop_source/get_token.html">get_token</a></code></td>
251251
<td>自身の停止状態を参照する<code><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_token.md.nolink">inplace_stop_token</span></code>を返す</td>
252252
<td>C++26</td>
253253
</tr>
254254
<tr>
255-
<td><code><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_source/stop_requested.md.nolink">stop_requested</span></code></td>
255+
<td><code><a href="inplace_stop_source/stop_requested.html">stop_requested</a></code></td>
256256
<td>停止要求を作成したかどうかを取得する</td>
257257
<td>C++26</td>
258258
</tr>
259259
<tr>
260-
<td><code><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_source/request_stop.md.nolink">request_stop</span></code></td>
260+
<td><code><a href="inplace_stop_source/request_stop.html">request_stop</a></code></td>
261261
<td>停止要求を作成する</td>
262262
<td>C++26</td>
263263
</tr>
@@ -274,7 +274,7 @@ <h2>静的メンバ関数</h2>
274274
</thead>
275275
<tbody>
276276
<tr>
277-
<td><code><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_source/stop_possible.md.nolink">stop_possible</span></code></td>
277+
<td><code><a href="inplace_stop_source/stop_possible.html">stop_possible</a></code></td>
278278
<td>停止要求を作成可能どうかを取得する</td>
279279
<td>C++26</td>
280280
</tr>
@@ -287,15 +287,15 @@ <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"><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_source/get_token.md.nolink">get_token()</span></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>
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

295295
<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>
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

298-
<span class="n">ss</span><span class="p">.</span><span class="n"><span href="https://cpprefjp.github.io/reference/stop_token/inplace_stop_source/request_stop.md.nolink">request_stop()</span></span><span class="p">;</span>
298+
<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

300300
<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>
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>
Lines changed: 276 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,276 @@
1+
<!doctype html>
2+
<html class="cpprefjp" lang="ja" itemscope="" itemtype="http://schema.org/WebPage">
3+
<head>
4+
5+
6+
<!-- Google tag (gtag.js) -->
7+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-NXNBNVBTJS"></script>
8+
<script>
9+
window.dataLayer = window.dataLayer || [];
10+
function gtag(){dataLayer.push(arguments);}
11+
gtag('js', new Date());
12+
13+
gtag('config', 'G-NXNBNVBTJS');
14+
</script>
15+
16+
17+
<meta charset="UTF-8">
18+
19+
<title>inplace_stop_source::get_token - cpprefjp C++日本語リファレンス</title>
20+
21+
<meta name="viewport" content="width=device-width,initial-scale=1">
22+
<meta name="keywords" content="
23+
C++,標準ライブラリ,リファレンス,ドキュメント,STL,std,stop_token,function,std,inplace_stop_source,cpp26
24+
">
25+
<meta name="title" content="inplace_stop_source::get_token - cpprefjp C++日本語リファレンス" />
26+
<meta itemprop="name" content="inplace_stop_source::get_token - cpprefjp C++日本語リファレンス" />
27+
<meta property="og:title" content="inplace_stop_source::get_token - cpprefjp C++日本語リファレンス" />
28+
<meta property="og:url" content="https://cpprefjp.github.io/reference/stop_token/inplace_stop_source/get_token.html" />
29+
<meta property="og:site_name" content="cpprefjp - C++日本語リファレンス" />
30+
<meta property="og:type" content="article" />
31+
<meta property="og:description" content="自身と停止状態を共有する[`inplace_stop_token`](../inplace_stop_token.md.nolink)を返す。" />
32+
<meta name="twitter:card" content="summary" />
33+
<meta name="twitter:title" content="inplace_stop_source::get_token - cpprefjp C++日本語リファレンス" />
34+
<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)を返す。" />
36+
37+
38+
<link rel="alternate" type="application/atom+xml" title="Atom" href="https://cpprefjp.github.io/rss.xml" />
39+
40+
41+
<link rel="apple-touch-icon" sizes="180x180" href="../../../static/favicons/apple-touch-icon.png?cachebust=8057d990dd61d47f1f176cd500c679183b81aeaa">
42+
<link rel="icon" type="image/png" sizes="32x32" href="../../../static/favicons/favicon-32x32.png?cachebust=8057d990dd61d47f1f176cd500c679183b81aeaa">
43+
<link rel="icon" type="image/png" sizes="16x16" href="../../../static/favicons/favicon-16x16.png?cachebust=8057d990dd61d47f1f176cd500c679183b81aeaa">
44+
<link rel="manifest" href="../../../manifest.json?cachebust=8057d990dd61d47f1f176cd500c679183b81aeaa">
45+
<meta name="theme-color" content="#f5f8fc">
46+
47+
<link rel="stylesheet" href="../../../static/pygments/default.css?cachebust=8057d990dd61d47f1f176cd500c679183b81aeaa">
48+
<!-- <link rel="stylesheet" href="../../../static/css/root.css"> -->
49+
50+
51+
52+
53+
54+
<link href="../../../static/kunai/css/kunai-stage-0.css?cachebust=8057d990dd61d47f1f176cd500c679183b81aeaa" rel="stylesheet">
55+
<link href="../../../static/kunai/css/kunai-stage-1.css?cachebust=8057d990dd61d47f1f176cd500c679183b81aeaa" rel="stylesheet">
56+
<link href="../../../static/kunai/css/kunai-stage-2.css?cachebust=8057d990dd61d47f1f176cd500c679183b81aeaa" rel="stylesheet">
57+
<link href="../../../static/kunai/css/kunai-stage-3.css?cachebust=8057d990dd61d47f1f176cd500c679183b81aeaa" rel="stylesheet">
58+
59+
<script type="text/javascript" src="../../../static/kunai/js/kunai-vendor.js?cachebust=8057d990dd61d47f1f176cd500c679183b81aeaa"></script>
60+
<script type="text/javascript" src="../../../static/kunai/js/kunai.js?cachebust=8057d990dd61d47f1f176cd500c679183b81aeaa"></script>
61+
62+
<script type="text/javascript">
63+
document.addEventListener('DOMContentLoaded', function() {
64+
var kn = new Kunai;
65+
kn.cpprefjp();
66+
});
67+
</script>
68+
69+
</head>
70+
<body>
71+
<header data-kunai-mdinfo="{&#34;meta&#34;: {&#34;header&#34;: [&#34;stop_token&#34;], &#34;id-type&#34;: [&#34;function&#34;], &#34;namespace&#34;: [&#34;std&#34;], &#34;class&#34;: [&#34;inplace_stop_source&#34;], &#34;cpp&#34;: [&#34;cpp26&#34;]}, &#34;sources&#34;: [], &#34;page_id&#34;: [&#34;reference&#34;, &#34;stop_token&#34;, &#34;inplace_stop_source&#34;, &#34;get_token&#34;]}">
72+
<nav class="navbar navbar-default" role="navigation">
73+
<div class="container-fluid">
74+
<div class="navbar-header">
75+
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
76+
<span class="sr-only">Toggle navigation</span>
77+
<span class="icon-bar"></span>
78+
<span class="icon-bar"></span>
79+
<span class="icon-bar"></span>
80+
</button>
81+
<a class="navbar-brand" href="../../../index.html">
82+
<div class="title-wrapper clearfix">
83+
<div class="title">cpprefjp - C++日本語リファレンス</div>
84+
</div>
85+
</a>
86+
</div>
87+
88+
<div class="collapse navbar-collapse" id="navbar-collapse">
89+
<ul class="nav navbar-nav navbar-right">
90+
<li>
91+
<div class="google-search">
92+
93+
94+
<script>
95+
(function() {
96+
var cx = '013316413321391058734:ji_u66hl7hq';
97+
var gcse = document.createElement('script');
98+
gcse.type = 'text/javascript';
99+
gcse.async = true;
100+
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
101+
'//www.google.com/cse/cse.js?cx=' + cx;
102+
var s = document.getElementsByTagName('script')[0];
103+
s.parentNode.insertBefore(gcse, s);
104+
})();
105+
</script>
106+
<div class="gcse-search"></div>
107+
108+
109+
</div>
110+
</li>
111+
<li>
112+
<a href="https://github.com/cpprefjp/site">GitHub Project</a>
113+
</li>
114+
</ul>
115+
</div>
116+
</div>
117+
</nav>
118+
</header>
119+
120+
<main id="main" role="main">
121+
<div class="container-fluid">
122+
<div class="row">
123+
<div class="col-sm-9 col-sm-push-3" itemscope itemtype="http://schema.org/Article">
124+
<div class="row">
125+
<div class="col-sm-12 google-search-result">
126+
<gcse:searchresults></gcse:searchresults>
127+
</div>
128+
</div>
129+
<div class="row">
130+
<div class="col-sm-12 content-header">
131+
132+
<ol class="breadcrumb">
133+
134+
<li itemscope itemtype="http://www.schema.org/SiteNavigationElement">
135+
<span>
136+
137+
<a href="../../../index.html" itemprop="url">
138+
139+
<i class="fa fa-fw fa-home"></i>
140+
141+
</a>
142+
143+
</span>
144+
</li>
145+
146+
<li itemscope itemtype="http://www.schema.org/SiteNavigationElement">
147+
<span>
148+
149+
<a href="../../../reference.html" itemprop="url">
150+
151+
<span itemprop="name">リファレンス</span>
152+
153+
</a>
154+
155+
</span>
156+
</li>
157+
158+
<li itemscope itemtype="http://www.schema.org/SiteNavigationElement">
159+
<span>
160+
161+
<a href="../../../reference/stop_token.html" itemprop="url">
162+
163+
<span itemprop="name">stop_token</span>
164+
165+
</a>
166+
167+
</span>
168+
</li>
169+
170+
<li itemscope itemtype="http://www.schema.org/SiteNavigationElement">
171+
<span>
172+
173+
<a href="../../../reference/stop_token/inplace_stop_source.html" itemprop="url">
174+
175+
<span itemprop="name">inplace_stop_source</span>
176+
177+
</a>
178+
179+
</span>
180+
</li>
181+
182+
<li class="active" itemscope itemtype="http://www.schema.org/SiteNavigationElement">
183+
<span>
184+
185+
186+
<span itemprop="name">get_token</span>
187+
188+
189+
</span>
190+
</li>
191+
192+
</ol>
193+
<div class="crsearch"></div>
194+
195+
</div>
196+
</div>
197+
<div class="row">
198+
<div class="col-sm-12 edit-button">
199+
200+
201+
<p class="text-right"><small>
202+
最終更新日時(UTC):
203+
<span itemprop="datePublished" content="2025-04-07T06:40:56">
204+
2025年04月07日 06時40分56秒
205+
</span>
206+
<br/>
207+
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
208+
<span itemprop="name">yoh</span>
209+
</span>
210+
が更新
211+
</small></p>
212+
213+
214+
<p class="text-right">
215+
<a class="history" target="_blank" href="https://github.com/cpprefjp/site/commits/master/reference/stop_token/inplace_stop_source/get_token.md">
216+
<span class="fa fa-fw fa-clock-o fa-flip-horizontal"></span>履歴
217+
</a>
218+
<a class="edit" target="_blank" href="https://github.com/cpprefjp/site/edit/master/reference/stop_token/inplace_stop_source/get_token.md">
219+
<span class="fa fa-fw fa-pencil"></span>編集
220+
</a>
221+
</p>
222+
</div>
223+
</div>
224+
<div class="row">
225+
<div class="col-sm-12 content-body">
226+
227+
<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>
229+
</code></pre></div>
230+
</p>
231+
<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>
233+
<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>
235+
<h2><a class="cpprefjp-defined-word" data-desc="問題が発生したときに、現在実行位置を過去に通過・記録した位置に戻し、文脈情報を添えて紐づけられた処理(例外ハンドラー)を呼び出す仕組み。またはその事態">例外</a></h2>
236+
<p>投げない</p>
237+
<h2>バージョン</h2>
238+
<h3>言語</h3>
239+
<ul>
240+
<li>C++26</li>
241+
</ul>
242+
<h3>処理系</h3>
243+
<ul>
244+
<li><a href="../../../implementation.html#clang">Clang</a>: ??</li>
245+
<li><a href="../../../implementation.html#gcc">GCC</a>: ??</li>
246+
<li><a href="../../../implementation.html#icc">ICC</a>: ??</li>
247+
<li><a href="../../../implementation.html#visual_cpp">Visual C++</a>: ??</li>
248+
</ul>
249+
<h2>参照</h2>
250+
<ul>
251+
<li><a href="https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2300r10.html" target="_blank">P2300R10 <code>std::execution</code></a></li>
252+
</ul></div>
253+
254+
</div>
255+
</div>
256+
</div>
257+
258+
259+
<div id="sidebar" class="col-sm-3 col-sm-pull-9">
260+
</div>
261+
262+
263+
</div>
264+
</div>
265+
</main>
266+
<footer class="footer navbar navbar-default">
267+
<div class="container-fluid">
268+
<p><small>
269+
本サイトの情報は、
270+
<a href="https://creativecommons.org/licenses/by/3.0/deed.ja" rel="nofollow">クリエイティブ・コモンズ 表示 3.0 非移植 ライセンス(CC BY)</a>
271+
の下に提供されています。
272+
</small></p>
273+
</div>
274+
</footer>
275+
</body>
276+
</html>

0 commit comments

Comments
 (0)