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 > never_stop_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,class,std,cpp26
24+ ">
25+ < meta name ="title " content ="never_stop_token - cpprefjp C++日本語リファレンス " />
26+ < meta itemprop ="name " content ="never_stop_token - cpprefjp C++日本語リファレンス " />
27+ < meta property ="og:title " content ="never_stop_token - cpprefjp C++日本語リファレンス " />
28+ < meta property ="og:url " content ="https://cpprefjp.github.io/reference/stop_token/never_stop_token.html " />
29+ < meta property ="og:site_name " content ="cpprefjp - C++日本語リファレンス " />
30+ < meta property ="og:type " content ="article " />
31+ < meta property ="og:description " content ="" />
32+ < meta name ="twitter:card " content ="summary " />
33+ < meta name ="twitter:title " content ="never_stop_token - cpprefjp C++日本語リファレンス " />
34+ < meta name ="twitter:url " content ="https://cpprefjp.github.io/reference/stop_token/never_stop_token.html " />
35+ < meta name ="twitter:description " content ="" />
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 ="{"meta": {"header": ["stop_token"], "id-type": ["class"], "namespace": ["std"], "cpp": ["cpp26"]}, "sources": [], "page_id": ["reference", "stop_token", "never_stop_token"]} ">
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 class ="active " itemscope itemtype ="http://www.schema.org/SiteNavigationElement ">
171+ < span >
172+
173+
174+ < span itemprop ="name "> never_stop_token</ span >
175+
176+
177+ </ span >
178+ </ li >
179+
180+ </ ol >
181+ < div class ="crsearch "> </ div >
182+
183+ </ div >
184+ </ div >
185+ < div class ="row ">
186+ < div class ="col-sm-12 edit-button ">
187+
188+
189+ < p class ="text-right "> < small >
190+ 最終更新日時(UTC):
191+ < span itemprop ="datePublished " content ="2025-04-04T10:13:17 ">
192+ 2025年04月04日 10時13分17秒
193+ </ span >
194+ < br />
195+ < span itemprop ="author " itemscope itemtype ="http://schema.org/Person ">
196+ < span itemprop ="name "> yoh</ span >
197+ </ span >
198+ が更新
199+ </ small > </ p >
200+
201+
202+ < p class ="text-right ">
203+ < a class ="history " target ="_blank " href ="https://github.com/cpprefjp/site/commits/master/reference/stop_token/never_stop_token.md ">
204+ < span class ="fa fa-fw fa-clock-o fa-flip-horizontal "> </ span > 履歴
205+ </ a >
206+ < a class ="edit " target ="_blank " href ="https://github.com/cpprefjp/site/edit/master/reference/stop_token/never_stop_token.md ">
207+ < span class ="fa fa-fw fa-pencil "> </ span > 編集
208+ </ a >
209+ </ p >
210+ </ div >
211+ </ div >
212+ < div class ="row ">
213+ < div class ="col-sm-12 content-body ">
214+
215+ < div class ="identifier-type "> class</ div > < div class ="header "> <stop_token></ div > < h1 itemprop ="name "> < span class ="namespace " title ="namespace std "> std::</ span > < span class ="token "> never_stop_token</ 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 ="k "> namespace</ span > < span class ="n "> std</ span > < span class ="p "> {</ span >
217+ < span class ="k "> class</ span > < span class ="nc "> never_stop_token</ span > < span class ="p "> ;</ span >
218+ < span class ="p "> }</ span >
219+ </ code > </ pre > </ div >
220+ </ p >
221+ < h2 > 概要</ h2 >
222+ < p > 停止不可能な停止トークン。< code > < a href ="unstoppable_token.html "> unstoppable_token</ a > </ code > コンセプトのモデル。</ p >
223+ < h2 > メンバ関数</ h2 >
224+ < table border ="1 " bordercolor ="#888 " style ="border-collapse:collapse ">
225+ < thead >
226+ < tr >
227+ < th > 名前</ th >
228+ < th > 説明</ th >
229+ < th > 対応バージョン</ th >
230+ </ tr >
231+ </ thead >
232+ < tbody >
233+ < tr >
234+ < td > < code > (constructor)</ code > </ td >
235+ < td > コンストラクタ</ td >
236+ < td > C++26</ td >
237+ </ tr >
238+ < tr >
239+ < td > < code > (destructor)</ code > </ td >
240+ < td > デストラクタ</ td >
241+ < td > C++26</ td >
242+ </ tr >
243+ < tr >
244+ < td > < code > bool operator==(const never_stop_token&) const = default;</ code > </ td >
245+ < td > 等値比較</ td >
246+ < td > C++26</ td >
247+ </ tr >
248+ < tr >
249+ < td > < code > bool operator!=(const never_stop_token&) const;</ code > </ td >
250+ < td > 非等値比較 (< code > ==</ code > により使用可能)</ td >
251+ < td > C++26</ td >
252+ </ tr >
253+ </ tbody >
254+ </ table >
255+ < h2 > 静的メンバ関数</ h2 >
256+ < table border ="1 " bordercolor ="#888 " style ="border-collapse:collapse ">
257+ < thead >
258+ < tr >
259+ < th > 名前</ th >
260+ < th > 説明</ th >
261+ < th > 対応バージョン</ th >
262+ </ tr >
263+ </ thead >
264+ < tbody >
265+ < tr >
266+ < td > < code > stop_requested</ code > </ td >
267+ < td > < code > false</ code > を返す</ td >
268+ < td > C++26</ td >
269+ </ tr >
270+ < tr >
271+ < td > < code > stop_possible</ code > </ td >
272+ < td > < code > false</ code > を返す</ td >
273+ < td > C++26</ td >
274+ </ tr >
275+ </ tbody >
276+ </ table >
277+ < h2 > メンバ型</ h2 >
278+ < table border ="1 " bordercolor ="#888 " style ="border-collapse:collapse ">
279+ < thead >
280+ < tr >
281+ < th > 名前</ th >
282+ < th > 説明</ th >
283+ < th > 対応バージョン</ th >
284+ </ tr >
285+ </ thead >
286+ < tbody >
287+ < tr >
288+ < td > < code > callback_type</ code > </ td >
289+ < td > 説明専用の< code > callback-type</ code > 型</ td >
290+ < td > C++26</ td >
291+ </ tr >
292+ </ tbody >
293+ </ table >
294+ < p > < div class ="codehilite "> < pre > < span > </ span > < code > < span class ="k "> struct</ span > < span class ="n "> callback</ span > < span class ="o "> -</ span > < span class ="n "> type</ span > < span class ="p "> {</ span >
295+ < span class ="k "> explicit</ span > < span class ="n "> callback</ span > < span class ="o "> -</ span > < span class ="n "> type</ span > < span class ="p "> (</ span > < span class ="n "> never_stop_token</ span > < span class ="p "> ,</ span > < span class ="k "> auto</ span > < span class ="o "> &&</ span > < span class ="p "> )</ span > < span class ="k "> noexcept</ span > < span class ="p "> {}</ span >
296+ < span class ="p "> };</ span >
297+ </ code > </ pre > </ div >
298+ </ p >
299+ < h2 > バージョン</ h2 >
300+ < h3 > 言語</ h3 >
301+ < ul >
302+ < li > C++26</ li >
303+ </ ul >
304+ < h3 > 処理系</ h3 >
305+ < ul >
306+ < li > < a href ="../../implementation.html#clang "> Clang</ a > : ??</ li >
307+ < li > < a href ="../../implementation.html#gcc "> GCC</ a > : ??</ li >
308+ < li > < a href ="../../implementation.html#icc "> ICC</ a > : ??</ li >
309+ < li > < a href ="../../implementation.html#visual_cpp "> Visual C++</ a > : ??</ li >
310+ </ ul >
311+ < h2 > 関連項目</ h2 >
312+ < ul >
313+ < li > < code > < a href ="unstoppable_token.html "> unstoppable_token</ a > </ code > </ li >
314+ </ ul >
315+ < h2 > 参照</ h2 >
316+ < ul >
317+ < 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 >
318+ </ ul > </ div >
319+
320+ </ div >
321+ </ div >
322+ </ div >
323+
324+
325+ < div id ="sidebar " class ="col-sm-3 col-sm-pull-9 ">
326+ </ div >
327+
328+
329+ </ div >
330+ </ div >
331+ </ main >
332+ < footer class ="footer navbar navbar-default ">
333+ < div class ="container-fluid ">
334+ < p > < small >
335+ 本サイトの情報は、
336+ < a href ="https://creativecommons.org/licenses/by/3.0/deed.ja " rel ="nofollow "> クリエイティブ・コモンズ 表示 3.0 非移植 ライセンス(CC BY)</ a >
337+ の下に提供されています。
338+ </ small > </ p >
339+ </ div >
340+ </ footer >
341+ </ body >
342+ </ html >
0 commit comments