Skip to content

Commit 3d02d48

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 7e123de commit 3d02d48

File tree

9 files changed

+619
-78
lines changed

9 files changed

+619
-78
lines changed

lang/cpp23.html

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

177177
<p class="text-right"><small>
178178
最終更新日時(UTC):
179-
<span itemprop="datePublished" content="2024-03-10T02:17:53">
180-
2024年03月10日 02時17分53秒
179+
<span itemprop="datePublished" content="2024-07-01T13:15:19">
180+
2024年07月01日 13時15分19秒
181181
</span>
182182
<br/>
183183
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
184-
<span itemprop="name">Tetsuro Matsumura</span>
184+
<span itemprop="name">suomesta</span>
185185
</span>
186186
が更新
187187
</small></p>
@@ -583,7 +583,6 @@ <h3>型情報</h3>
583583
<h3>型特性</h3>
584584
<ul>
585585
<li><code><a href="../reference/type_traits.html">&lt;type_traits&gt;</a></code>に、スコープ付き列挙型かを判定する型特性<code><a href="../reference/type_traits/is_scoped_enum.html">std::is_scoped_enum</a></code>を追加</li>
586-
<li><code><a href="../reference/type_traits.html">&lt;type_traits&gt;</a></code>に、第1テンプレート引数についている型修飾を外す型特性として、以下を追加:</li>
587586
<li><code><a href="../reference/type_traits.html">&lt;type_traits&gt;</a></code>に、一時オブジェクトの参照への束縛を検出するための型特性として、以下を追加:<ul>
588587
<li><code><a href="../reference/type_traits/reference_constructs_from_temporary.html">std::reference_constructs_from_temporary</a></code></li>
589588
<li><code><a href="../reference/type_traits/reference_converts_from_temporary.html">std::reference_converts_from_temporary</a></code></li>

lang/cpp23/simpler_implicit_move.html

Lines changed: 4 additions & 4 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-06-14T05:17:35">
192-
2024年06月14日 05時17分35秒
191+
<span itemprop="datePublished" content="2024-07-01T13:15:19">
192+
2024年07月01日 13時15分19秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
196-
<span itemprop="name">Akira Takahashi</span>
196+
<span itemprop="name">suomesta</span>
197197
</span>
198198
が更新
199199
</small></p>
@@ -566,7 +566,7 @@ <h2>この機能が必要になった背景・経緯</h2>
566566
</code></pre></div>
567567
</p>
568568
<p>この非一貫性を解消することがまず求められていた。</p>
569-
<p>また、C++20時点の暗黙ムーブの使用は二段階のオーバーロード解決を行う複雑なものであり、暗黙ムーブが行われるかどうかについて実装間で挙動に差異が生じていた。C++20時点の暗黙ムーブの仕様は次のようになっていた</p>
569+
<p>また、C++20時点の暗黙ムーブの仕様は二段階のオーバーロード解決を行う複雑なものであり、暗黙ムーブが行われるかどうかについて実装間で挙動に差異が生じていた。C++20時点の暗黙ムーブの仕様は次のようになっていた</p>
570570
<p>暗黙ムーブ可能なエンティティが次のコピー初期化が行われる場所で指名されている場合、コピーの代わりにムーブが使用される場合がある</p>
571571
<ul>
572572
<li><code>return/co_return</code>文のオペランド<ul>

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">RpyCLhTEuLybexWqTxYuwqDtElQHFHj</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/execution/execution/execution_policy.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
</head>
7070
<body>
71-
<header data-kunai-mdinfo="{&#34;meta&#34;: {&#34;header&#34;: [&#34;execution&#34;], &#34;namespace&#34;: [&#34;std::execution&#34;], &#34;id-type&#34;: [&#34;class&#34;], &#34;cpp&#34;: [&#34;cpp17&#34;]}, &#34;sources&#34;: [{&#34;id&#34;: &#34;472d7f1872b818bcb98d05694e11c93bc046a0ba&#34;, &#34;source&#34;: &#34;#include &lt;iostream&gt;\n#include &lt;algorithm&gt;\n#include &lt;execution&gt;\n#include &lt;vector&gt;\n\nint main()\n{\n std::vector&lt;int&gt; v = {3, 1, 4, 5, 2, 6};\n\n // \u3053\u308c\u307e\u3067\u901a\u308a\u306e\u9010\u6b21\u5b9f\u884c\n std::sort(v.begin(), v.end());\n std::sort(std::execution::seq, v.begin(), v.end());\n\n // \u4e26\u5217\u5b9f\u884c\n std::sort(std::execution::par, v.begin(), v.end());\n\n // \u4e26\u5217\u5316\u30fb\u30d9\u30af\u30c8\u30eb\u5316\n std::sort(std::execution::par_unseq, v.begin(), v.end());\n\n // \u30d9\u30af\u30c8\u30eb\u5316\n std::sort(std::execution::unseq, v.begin(), v.end());\n\n for (int x : v) {\n std::cout &lt;&lt; x &lt;&lt; std::endl;\n }\n}\n&#34;}, {&#34;id&#34;: &#34;1e646621fd2b932133642d72e736ae9b8811031f&#34;, &#34;source&#34;: &#34;#include &lt;iostream&gt;\n#include &lt;algorithm&gt;\n#include &lt;execution&gt;\n#include &lt;vector&gt;\n#include &lt;mutex&gt;\n\nint main()\n{\n {\n std::vector&lt;int&gt; a = {3, 1, 4, 5, 2, 6};\n std::vector&lt;int&gt; b;\n\n // \u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u5316\u306e\u5834\u5408\u306f\u3001\u30df\u30e5\u30fc\u30c6\u30c3\u30af\u30b9\u304b\u30a2\u30c8\u30df\u30c3\u30af\u64cd\u4f5c\u3067\u30c7\u30fc\u30bf\u7af6\u5408\u3092\u56de\u907f\u3059\u308b\n std::mutex m;\n std::for_each(std::execution::par, a.begin(), b.end(), [&amp;](int x) {\n std::lock_guard lk{m};\n b.push_back(x);\n });\n\n for (int x : b) {\n std::cout &lt;&lt; x &lt;&lt; &#39; &#39;;\n }\n std::cout &lt;&lt; std::endl;\n }\n\n // (\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u5316 +) \u30d9\u30af\u30c8\u30eb\u5316\u306e\u5834\u5408\u306f\u3001Lock-free\u30a2\u30c8\u30df\u30c3\u30af\u64cd\u4f5c\u3067\u30c7\u30fc\u30bf\u7af6\u5408\u3092\u56de\u907f\u3059\u308b\n {\n static_assert(std::atomic&lt;int&gt;::is_always_lock_free); // Lock-free\u4fdd\u8a3c\u3092\u78ba\u8a8d\n std::vector&lt;int&gt; v = {3, 1, 4, 5, 2};\n std::atomic&lt;int&gt; count {0}; // \u30bf\u30b9\u30af\u304c\u7d42\u4e86\u3057\u305f\u6570\n\n std::for_each(std::execution::par_unseq, v.begin(), v.end(), [&amp;count](int) {\n // ...\u6642\u9593\u306e\u304b\u304b\u308b\u51e6\u7406...\n ++count;\n });\n\n std::cout &lt;&lt; count.load() &lt;&lt; std::endl;\n }\n}\n&#34;}], &#34;page_id&#34;: [&#34;reference&#34;, &#34;execution&#34;, &#34;execution&#34;, &#34;execution_policy&#34;]}">
71+
<header data-kunai-mdinfo="{&#34;meta&#34;: {&#34;header&#34;: [&#34;execution&#34;], &#34;namespace&#34;: [&#34;std::execution&#34;], &#34;id-type&#34;: [&#34;class&#34;], &#34;cpp&#34;: [&#34;cpp17&#34;]}, &#34;sources&#34;: [{&#34;id&#34;: &#34;472d7f1872b818bcb98d05694e11c93bc046a0ba&#34;, &#34;source&#34;: &#34;#include &lt;iostream&gt;\n#include &lt;algorithm&gt;\n#include &lt;execution&gt;\n#include &lt;vector&gt;\n\nint main()\n{\n std::vector&lt;int&gt; v = {3, 1, 4, 5, 2, 6};\n\n // \u3053\u308c\u307e\u3067\u901a\u308a\u306e\u9010\u6b21\u5b9f\u884c\n std::sort(v.begin(), v.end());\n std::sort(std::execution::seq, v.begin(), v.end());\n\n // \u4e26\u5217\u5b9f\u884c\n std::sort(std::execution::par, v.begin(), v.end());\n\n // \u4e26\u5217\u5316\u30fb\u30d9\u30af\u30c8\u30eb\u5316\n std::sort(std::execution::par_unseq, v.begin(), v.end());\n\n // \u30d9\u30af\u30c8\u30eb\u5316\n std::sort(std::execution::unseq, v.begin(), v.end());\n\n for (int x : v) {\n std::cout &lt;&lt; x &lt;&lt; std::endl;\n }\n}\n&#34;}, {&#34;id&#34;: &#34;958d23dfa2ea4c4bff0bb8e80c99aa18086a0619&#34;, &#34;source&#34;: &#34;#include &lt;iostream&gt;\n#include &lt;algorithm&gt;\n#include &lt;execution&gt;\n#include &lt;vector&gt;\n#include &lt;mutex&gt;\n\nint main()\n{\n {\n std::vector&lt;int&gt; a = {3, 1, 4, 5, 2, 6};\n std::vector&lt;int&gt; b;\n\n // \u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u5316\u306e\u5834\u5408\u306f\u3001\u30df\u30e5\u30fc\u30c6\u30c3\u30af\u30b9\u304b\u30a2\u30c8\u30df\u30c3\u30af\u64cd\u4f5c\u3067\u30c7\u30fc\u30bf\u7af6\u5408\u3092\u56de\u907f\u3059\u308b\n std::mutex m;\n std::for_each(std::execution::par, a.begin(), a.end(), [&amp;](int x) {\n std::lock_guard lk{m};\n b.push_back(x);\n });\n\n for (int x : b) {\n std::cout &lt;&lt; x &lt;&lt; &#39; &#39;;\n }\n std::cout &lt;&lt; std::endl;\n }\n\n // (\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u5316 +) \u30d9\u30af\u30c8\u30eb\u5316\u306e\u5834\u5408\u306f\u3001Lock-free\u30a2\u30c8\u30df\u30c3\u30af\u64cd\u4f5c\u3067\u30c7\u30fc\u30bf\u7af6\u5408\u3092\u56de\u907f\u3059\u308b\n {\n static_assert(std::atomic&lt;int&gt;::is_always_lock_free); // Lock-free\u4fdd\u8a3c\u3092\u78ba\u8a8d\n std::vector&lt;int&gt; v = {3, 1, 4, 5, 2};\n std::atomic&lt;int&gt; count {0}; // \u30bf\u30b9\u30af\u304c\u7d42\u4e86\u3057\u305f\u6570\n\n std::for_each(std::execution::par_unseq, v.begin(), v.end(), [&amp;count](int) {\n // ...\u6642\u9593\u306e\u304b\u304b\u308b\u51e6\u7406...\n ++count;\n });\n\n std::cout &lt;&lt; count.load() &lt;&lt; std::endl;\n }\n}\n&#34;}], &#34;page_id&#34;: [&#34;reference&#34;, &#34;execution&#34;, &#34;execution&#34;, &#34;execution_policy&#34;]}">
7272
<nav class="navbar navbar-default" role="navigation">
7373
<div class="container-fluid">
7474
<div class="navbar-header">
@@ -200,8 +200,8 @@
200200

201201
<p class="text-right"><small>
202202
最終更新日時(UTC):
203-
<span itemprop="datePublished" content="2024-05-12T06:58:52">
204-
2024年05月12日 06時58分52秒
203+
<span itemprop="datePublished" content="2024-07-01T13:15:19">
204+
2024年07月01日 13時15分19秒
205205
</span>
206206
<br/>
207207
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -333,7 +333,7 @@ <h4>出力</h4>
333333
6
334334
</code></pre></p>
335335
<h3>データ競合を回避する例</h3>
336-
<p><div class="yata" id="1e646621fd2b932133642d72e736ae9b8811031f"><div class="codehilite"><pre><span></span><code><span class="cp">#include</span> <span class="cpf"><a href="../../iostream.html">&lt;iostream&gt;</a></span><span class="cp"></span>
336+
<p><div class="yata" id="958d23dfa2ea4c4bff0bb8e80c99aa18086a0619"><div class="codehilite"><pre><span></span><code><span class="cp">#include</span> <span class="cpf"><a href="../../iostream.html">&lt;iostream&gt;</a></span><span class="cp"></span>
337337
<span class="cp">#include</span> <span class="cpf"><a href="../../algorithm.html">&lt;algorithm&gt;</a></span><span class="cp"></span>
338338
<span class="cp">#include</span> <span class="cpf"><a href="../../execution.html">&lt;execution&gt;</a></span><span class="cp"></span>
339339
<span class="cp">#include</span> <span class="cpf"><a href="../../vector.html">&lt;vector&gt;</a></span><span class="cp"></span>
@@ -347,7 +347,7 @@ <h3>データ競合を回避する例</h3>
347347

348348
<span class="c1">// マルチスレッド化の場合は、ミューテックスかアトミック操作でデータ競合を回避する</span>
349349
<span class="n"><a href="../../mutex/mutex.html">std::mutex</a></span> <span class="n">m</span><span class="p">;</span>
350-
<span class="n"><a href="../../algorithm/for_each.html">std::for_each</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">std::execution::par</span></span><span class="p">,</span> <span class="n">a</span><span class="p">.</span><span class="n">begin</span><span class="p">(),</span> <span class="n">b</span><span class="p">.</span><span class="n">end</span><span class="p">(),</span> <span class="p">[</span><span class="o">&amp;</span><span class="p">](</span><span class="kt">int</span> <span class="n">x</span><span class="p">)</span> <span class="p">{</span>
350+
<span class="n"><a href="../../algorithm/for_each.html">std::for_each</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">std::execution::par</span></span><span class="p">,</span> <span class="n">a</span><span class="p">.</span><span class="n">begin</span><span class="p">(),</span> <span class="n">a</span><span class="p">.</span><span class="n">end</span><span class="p">(),</span> <span class="p">[</span><span class="o">&amp;</span><span class="p">](</span><span class="kt">int</span> <span class="n">x</span><span class="p">)</span> <span class="p">{</span>
351351
<span class="n"><a href="../../mutex/lock_guard.html">std::lock_guard</a></span> <span class="n">lk</span><span class="p">{</span><span class="n">m</span><span class="p">};</span>
352352
<span class="n">b</span><span class="p">.</span><span class="n">push_back</span><span class="p">(</span><span class="n">x</span><span class="p">);</span>
353353
<span class="p">});</span>

reference/format/range_format.html

Lines changed: 4 additions & 4 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="2023-04-17T09:07:27">
192-
2023年04月17日 09時07分27秒
191+
<span itemprop="datePublished" content="2024-07-01T13:15:19">
192+
2024年07月01日 13時15分19秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
196-
<span itemprop="name">Akira Takahashi</span>
196+
<span itemprop="name">suomesta</span>
197197
</span>
198198
が更新
199199
</small></p>
@@ -263,7 +263,7 @@ <h2>概要</h2>
263263
</table>
264264
<h2>備考</h2>
265265
<ul>
266-
<li><code>disable</code>は値0であるため、<code>bool</code>型に変換して有効かどうかを判定するための使用できる</li>
266+
<li><code>disabled</code>は値0であるため、<code>bool</code>型に変換して有効かどうかを判定するために使用できる</li>
267267
</ul>
268268
<h2>バージョン</h2>
269269
<h3>言語</h3>

reference/iterator/reverse_iterator/op_plus.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
<meta property="og:url" content="https://cpprefjp.github.io/reference/iterator/reverse_iterator/op_plus.html" />
2929
<meta property="og:site_name" content="cpprefjp - C++日本語リファレンス" />
3030
<meta property="og:type" content="article" />
31-
<meta property="og:description" content="イテレータを`N`回進める。" />
31+
<meta property="og:description" content="イテレータを`n`回進める。" />
3232
<meta name="twitter:card" content="summary" />
3333
<meta name="twitter:title" content="operator+ (非メンバ関数) - cpprefjp C++日本語リファレンス" />
3434
<meta name="twitter:url" content="https://cpprefjp.github.io/reference/iterator/reverse_iterator/op_plus.html" />
35-
<meta name="twitter:description" content="イテレータを`N`回進める。" />
35+
<meta name="twitter:description" content="イテレータを`n`回進める。" />
3636

3737

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

201201
<p class="text-right"><small>
202202
最終更新日時(UTC):
203-
<span itemprop="datePublished" content="2018-10-16T07:26:39">
204-
2018年10月16日 07時26分39秒
203+
<span itemprop="datePublished" content="2024-07-01T13:15:19">
204+
2024年07月01日 13時15分19秒
205205
</span>
206206
<br/>
207207
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
208-
<span itemprop="name">Akira Takahashi</span>
208+
<span itemprop="name">suomesta</span>
209209
</span>
210210
が更新
211211
</small></p>
@@ -239,7 +239,7 @@
239239
</code></pre></div>
240240
</p>
241241
<h2>概要</h2>
242-
<p>イテレータを<code>N</code>回進める。</p>
242+
<p>イテレータを<code>n</code>回進める。</p>
243243
<p><code>reverse_iterator</code>は逆方向に進める。</p>
244244
<h2>戻り値</h2>
245245
<p><code>reverse_iterator&lt;Iterator&gt;(x.current - n)</code></p>

reference/iterator/reverse_iterator/op_plus_assign.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
<meta property="og:url" content="https://cpprefjp.github.io/reference/iterator/reverse_iterator/op_plus_assign.html" />
2929
<meta property="og:site_name" content="cpprefjp - C++日本語リファレンス" />
3030
<meta property="og:type" content="article" />
31-
<meta property="og:description" content="イテレータ自身を`N`回進める。" />
31+
<meta property="og:description" content="イテレータ自身を`n`回進める。" />
3232
<meta name="twitter:card" content="summary" />
3333
<meta name="twitter:title" content="reverse_iterator::operator+= - cpprefjp C++日本語リファレンス" />
3434
<meta name="twitter:url" content="https://cpprefjp.github.io/reference/iterator/reverse_iterator/op_plus_assign.html" />
35-
<meta name="twitter:description" content="イテレータ自身を`N`回進める。" />
35+
<meta name="twitter:description" content="イテレータ自身を`n`回進める。" />
3636

3737

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

201201
<p class="text-right"><small>
202202
最終更新日時(UTC):
203-
<span itemprop="datePublished" content="2018-10-16T07:26:39">
204-
2018年10月16日 07時26分39秒
203+
<span itemprop="datePublished" content="2024-07-01T13:15:19">
204+
2024年07月01日 13時15分19秒
205205
</span>
206206
<br/>
207207
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
208-
<span itemprop="name">Akira Takahashi</span>
208+
<span itemprop="name">suomesta</span>
209209
</span>
210210
が更新
211211
</small></p>
@@ -230,7 +230,7 @@
230230
</code></pre></div>
231231
</p>
232232
<h2>概要</h2>
233-
<p>イテレータ自身を<code>N</code>回進める。</p>
233+
<p>イテレータ自身を<code>n</code>回進める。</p>
234234
<p><code>reverse_iterator</code>なので逆方向に進める。</p>
235235
<h2>効果</h2>
236236
<p><code>current -= n</code></p>

0 commit comments

Comments
 (0)