Skip to content

Commit ff1a9ab

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent fec793d commit ff1a9ab

File tree

10 files changed

+4056
-2430
lines changed

10 files changed

+4056
-2430
lines changed

implementation-status.html

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

165165
<p class="text-right"><small>
166166
最終更新日時(UTC):
167-
<span itemprop="datePublished" content="2024-08-25T22:00:59">
168-
2024年08月25日 22時00分59秒
167+
<span itemprop="datePublished" content="2024-09-12T03:40:36">
168+
2024年09月12日 03時40分36秒
169169
</span>
170170
<br/>
171171
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -1910,8 +1910,8 @@ <h2><a href="#cpp26" id="cpp26">C++26言語機能の実装状況</a></h2>
19101910
<td></td>
19111911
</tr>
19121912
<tr>
1913-
<td>P0609R3: <span href="https://cpprefjp.github.io/lang/cpp26/attributes_for_structured_bindings.md.nolink">構造化束縛への属性を許可</span></td>
1914-
<td><code>auto [a, [[maybe_unused]] b, c] = f();</code>のように構造化束縛の要素に対して属性を付加できるようにする</td>
1913+
<td>P0609R3: <a href="lang/cpp26/attributes_for_structured_bindings.html">構造化束縛への属性を許可</a></td>
1914+
<td><code>auto [a, b [[maybe_unused]], c] = f();</code>のように構造化束縛の要素に対して属性を付加できるようにする</td>
19151915
<td>15</td>
19161916
<td>19</td>
19171917
<td></td>

lang/cpp11/attributes.html

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

189189
<p class="text-right"><small>
190190
最終更新日時(UTC):
191-
<span itemprop="datePublished" content="2024-07-16T09:43:27">
192-
2024年07月16日 09時43分27秒
191+
<span itemprop="datePublished" content="2024-09-12T03:40:36">
192+
2024年09月12日 03時40分36秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
196-
<span itemprop="name">raclamusi</span>
196+
<span itemprop="name">Akira Takahashi</span>
197197
</span>
198198
が更新
199199
</small></p>
@@ -348,6 +348,7 @@ <h2><a href="#relative-page" id="relative-page">関連項目</a></h2>
348348
<li><a href="../cpp20/likely_and_unlikely_attributes.html">C++20 <code>[[likely]]</code>, <code>[[unlikely]]</code>属性</a></li>
349349
<li><a href="../cpp20/reserving_attribute_namespaces_for_future_use.html">C++20 属性の名前空間を予約</a></li>
350350
<li><a href="../cpp23/attributes_on_lambda_expressions.html">C++23 ラムダ式に対する属性</a></li>
351+
<li><a href="../cpp26/attributes_for_structured_bindings.html">C++26 構造化束縛への属性を許可</a></li>
351352
</ul>
352353
<h2>参照</h2>
353354
<ul>

lang/cpp17/structured_bindings.html

Lines changed: 3 additions & 2 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="2024-07-08T07:33:21">
192-
2024年07月08日 07時33分21秒
191+
<span itemprop="datePublished" content="2024-09-12T03:40:36">
192+
2024年09月12日 03時40分36秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -517,6 +517,7 @@ <h2><a href="#relative-page" id="relative-page">関連項目</a></h2>
517517
<li><a href="../cpp20/relaxing_the_structured_bindings_customization_point_finding_rules.html">C++20 構造化束縛がカスタマイゼーションポイントを見つけるルールを緩和</a></li>
518518
<li><a href="../cpp20/extending_structured_bindings_to_be_more_like_variable_declarations.html">C++20 構造化束縛を拡張して通常の変数宣言のように使用できるようにする</a></li>
519519
<li><a href="../cpp20/reference_capture_of_structured_bindings.html">C++20 構造化束縛した変数の参照キャプチャを許可</a></li>
520+
<li><a href="../cpp26/attributes_for_structured_bindings.html">C++26 構造化束縛への属性を許可</a></li>
520521
</ul>
521522
<h2>参照</h2>
522523
<ul>

lang/cpp26.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="2024-09-11T07:06:58">
180-
2024年09月11日 07時06分58秒
179+
<span itemprop="datePublished" content="2024-09-12T03:40:36">
180+
2024年09月12日 03時40分36秒
181181
</span>
182182
<br/>
183183
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -311,8 +311,8 @@ <h3>属性</h3>
311311
<td>構文として<a class="cpprefjp-defined-word" data-desc="プログラムが文法規則・診断対象の意味規則・単一定義規則を満たすこと" href="../implementation-compliance.html#dfn-well-formed">適格</a>な属性のみを無視できるようにし、そうでない属性の使用を<a class="cpprefjp-defined-word" data-desc="プログラムが適格でないこと。コンパイルエラーなどになる" href="../implementation-compliance.html#dfn-ill-formed">不適格</a>とする</td>
312312
</tr>
313313
<tr>
314-
<td><span href="https://cpprefjp.github.io/lang/cpp26/attributes_for_structured_bindings.md.nolink">構造化束縛への属性を許可</span></td>
315-
<td><code>auto [a, [[maybe_unused]] b, c] = f();</code>のように構造化束縛の要素に対して属性を付加できるようにする</td>
314+
<td><a href="cpp26/attributes_for_structured_bindings.html">構造化束縛への属性を許可</a></td>
315+
<td><code>auto [a, b [[maybe_unused]], c] = f();</code>のように構造化束縛の要素に対して属性を付加できるようにする</td>
316316
</tr>
317317
</tbody>
318318
</table>
Lines changed: 259 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,259 @@
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>構造化束縛への属性を許可 [P0609R3] - cpprefjp C++日本語リファレンス</title>
20+
21+
<meta name="viewport" content="width=device-width,initial-scale=1">
22+
<meta name="keywords" content="
23+
C++,標準ライブラリ,リファレンス,ドキュメント,STL,std,cpp26
24+
">
25+
<meta name="title" content="構造化束縛への属性を許可 [P0609R3] - cpprefjp C++日本語リファレンス" />
26+
<meta itemprop="name" content="構造化束縛への属性を許可 [P0609R3] - cpprefjp C++日本語リファレンス" />
27+
<meta property="og:title" content="構造化束縛への属性を許可 [P0609R3] - cpprefjp C++日本語リファレンス" />
28+
<meta property="og:url" content="https://cpprefjp.github.io/lang/cpp26/attributes_for_structured_bindings.html" />
29+
<meta property="og:site_name" content="cpprefjp - C++日本語リファレンス" />
30+
<meta property="og:type" content="article" />
31+
<meta property="og:description" content="C++26では、構造化束縛の各要素に対して属性を指定できるようになる。" />
32+
<meta name="twitter:card" content="summary" />
33+
<meta name="twitter:title" content="構造化束縛への属性を許可 [P0609R3] - cpprefjp C++日本語リファレンス" />
34+
<meta name="twitter:url" content="https://cpprefjp.github.io/lang/cpp26/attributes_for_structured_bindings.html" />
35+
<meta name="twitter:description" content="C++26では、構造化束縛の各要素に対して属性を指定できるようになる。" />
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=0e476399d981581c37613c7023035bba5447c826">
42+
<link rel="icon" type="image/png" sizes="32x32" href="../../static/favicons/favicon-32x32.png?cachebust=0e476399d981581c37613c7023035bba5447c826">
43+
<link rel="icon" type="image/png" sizes="16x16" href="../../static/favicons/favicon-16x16.png?cachebust=0e476399d981581c37613c7023035bba5447c826">
44+
<link rel="manifest" href="../../manifest.json?cachebust=0e476399d981581c37613c7023035bba5447c826">
45+
<meta name="theme-color" content="#f5f8fc">
46+
47+
<link rel="stylesheet" href="../../static/pygments/default.css?cachebust=0e476399d981581c37613c7023035bba5447c826">
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=0e476399d981581c37613c7023035bba5447c826" rel="stylesheet">
55+
<link href="../../static/kunai/css/kunai-stage-1.css?cachebust=0e476399d981581c37613c7023035bba5447c826" rel="stylesheet">
56+
<link href="../../static/kunai/css/kunai-stage-2.css?cachebust=0e476399d981581c37613c7023035bba5447c826" rel="stylesheet">
57+
<link href="../../static/kunai/css/kunai-stage-3.css?cachebust=0e476399d981581c37613c7023035bba5447c826" rel="stylesheet">
58+
59+
<script type="text/javascript" src="../../static/kunai/js/kunai-vendor.js?cachebust=0e476399d981581c37613c7023035bba5447c826"></script>
60+
<script type="text/javascript" src="../../static/kunai/js/kunai.js?cachebust=0e476399d981581c37613c7023035bba5447c826"></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;cpp&#34;: [&#34;cpp26&#34;]}, &#34;sources&#34;: [], &#34;page_id&#34;: [&#34;lang&#34;, &#34;cpp26&#34;, &#34;attributes_for_structured_bindings&#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="../../lang.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="../../lang/cpp26.html" itemprop="url">
162+
163+
<span itemprop="name">C++26</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">構造化束縛への属性を許可 [P0609R3]</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="2024-09-12T03:40:36">
192+
2024年09月12日 03時40分36秒
193+
</span>
194+
<br/>
195+
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
196+
<span itemprop="name">Akira Takahashi</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/lang/cpp26/attributes_for_structured_bindings.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/lang/cpp26/attributes_for_structured_bindings.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+
<h1 itemprop="name"><span class="token">構造化束縛への属性を許可 [P0609R3]</span><span class="cpp cpp26" title="C++26で追加">(C++26)</span></h1>
216+
<div itemprop="articleBody"><p></p>
217+
<p>このページはC++26に採用される見込みの言語機能の変更を解説しています。</p>
218+
<p>のちのC++規格でさらに変更される場合があるため<a href="#relative-page">関連項目</a>を参照してください。</p>
219+
<p></p>
220+
<h2>概要</h2>
221+
<p>C++26では、構造化束縛の各要素に対して属性を指定できるようになる。</p>
222+
<p><div class="codehilite"><pre><span></span><code><span class="c1">// 構造化束縛した変数bは使わない</span>
223+
<span class="k">auto</span> <span class="p">[</span><span class="n">a</span><span class="p">,</span> <span class="n">b</span> <span class="p">[[</span><span class="n">maybe_unused</span><span class="p">]],</span> <span class="n">c</span><span class="p">]</span> <span class="o">=</span> <span class="n">f</span><span class="p">();</span>
224+
</code></pre></div>
225+
</p>
226+
<p>構文としては、構造化束縛の要素となる変数名の後ろに属性を指定する。</p>
227+
<h2><a href="#relative-page" id="relative-page">関連項目</a></h2>
228+
<ul>
229+
<li><a href="../cpp11/attributes.html">C++11 属性構文</a></li>
230+
<li><a href="../cpp17/structured_bindings.html">C++17 構造化束縛</a></li>
231+
</ul>
232+
<h2>参照</h2>
233+
<ul>
234+
<li><a href="https://open-std.org/jtc1/sc22/wg21/docs/papers/2024/p0609r3.pdf" target="_blank">P0609R3 Attributes for Structured Bindings</a></li>
235+
</ul></div>
236+
237+
</div>
238+
</div>
239+
</div>
240+
241+
242+
<div id="sidebar" class="col-sm-3 col-sm-pull-9">
243+
</div>
244+
245+
246+
</div>
247+
</div>
248+
</main>
249+
<footer class="footer navbar navbar-default">
250+
<div class="container-fluid">
251+
<p><small>
252+
本サイトの情報は、
253+
<a href="https://creativecommons.org/licenses/by/3.0/deed.ja" rel="nofollow">クリエイティブ・コモンズ 表示 3.0 非移植 ライセンス(CC BY)</a>
254+
の下に提供されています。
255+
</small></p>
256+
</div>
257+
</footer>
258+
</body>
259+
</html>

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">1</span><span class="n"><a href="duration/op_h.html">3h</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">1u</span><span class="n">TqSFlfSSPapLrvFszILJIAtKtfawzlb</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>

0 commit comments

Comments
 (0)