Skip to content

Commit 1d7834e

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 96d2c05 commit 1d7834e

39 files changed

+2954
-5631
lines changed

lang/cpp11/static_assert.html

Lines changed: 5 additions & 3 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-12-05T02:54:34">
192+
2024年12月05日 02時54分34秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -238,9 +238,11 @@ <h2>仕様</h2>
238238
<li>この宣言は、名前空間スコープ、ブロックスコープ、メンバ宣言といった場所で記述できる</li>
239239
<li>定数式が真であると評価された場合は何も効果がない。定数式が偽であると評価された場合は、指定された文字列リテラルを含む<a class="cpprefjp-defined-word" data-desc="診断情報。コンパイルエラーや警告。処理系がプログラム翻訳時に提供する情報の総称" href="../../implementation-compliance.html#dfn-diagnostic-message">診断メッセージ</a>がコンパイラによって問題報告される。ただし、基本ソース文字集合に含まれない文字集合は、<a class="cpprefjp-defined-word" data-desc="診断情報。コンパイルエラーや警告。処理系がプログラム翻訳時に提供する情報の総称" href="../../implementation-compliance.html#dfn-diagnostic-message">診断メッセージ</a>に表示することはコンパイラに要求されない</li>
240240
<li><code>static_assert</code>宣言では、新たな型やオブジェクトは宣言しない。また、実行時にサイズや時間コストは発生しない</li>
241-
<li>(CWG 2518が適用された環境): template文(もしくは適切な特殊化や<a href="../cpp17/if_constexpr.html">C++17 constexpr if 文</a>の中の文)が実際にインスタンス化されるまで、<code>static_assert</code>文の宣言は遅延される。</li>
241+
<li>(CWG 2518が適用された環境): template文(もしくは適切な特殊化や<a href="../cpp17/if_constexpr.html">C++17 constexpr if 文</a>の中の文)が実際にインスタンス化されるまで、<code>static_assert</code>文の宣言は遅延される。<ul>
242242
<li><a href="../cpp17/if_constexpr.html">C++17 constexpr if 文</a>の解説を参照</li>
243243
</ul>
244+
</li>
245+
</ul>
244246
<h2></h2>
245247
<p><div class="yata" id="51bef4336d48e5e1d98e2092bc804ed411c3328a"><div class="codehilite"><pre><span></span><code><span class="cp">#include</span> <span class="cpf"><a href="../../reference/type_traits.html">&lt;type_traits&gt;</a></span><span class="cp"></span>
246248

lang/cpp17/guaranteed_copy_elision.html

Lines changed: 4 additions & 4 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-12-05T02:54:34">
192+
2024年12月05日 02時54分34秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -243,8 +243,8 @@ <h2>仕様</h2>
243243
</ul>
244244
<p>これより、上の例は「クラス<code>prvalue</code>でメンバアクセスを実行するとき」にあたり、<code>xvalue</code>として一時オブジェクトを生成している。</p>
245245
<p>また、<code>prvalue</code>から<code>prvalue</code>への変換は、上記の「一時オブジェクトの実体化は一般に可能な限り遅らせられる」ことより、一時オブジェクトを実体化しない。よって、次の例における<code>prvalue</code><code>T</code>型の戻り値は、呼び出し元の<code>t</code>を直接初期化する。</p>
246-
<p><div class="codehilite"><pre><span></span><code> <span class="n">T</span> <span class="nf">Func</span><span class="p">()</span> <span class="p">{</span><span class="k">return</span> <span class="n">T</span><span class="p">();}</span>
247-
<span class="n">T</span> <span class="n">t</span> <span class="o">=</span> <span class="n">Func</span><span class="p">();</span> <span class="c1">// 直接初期化</span>
246+
<p><div class="codehilite"><pre><span></span><code><span class="n">T</span> <span class="nf">Func</span><span class="p">()</span> <span class="p">{</span><span class="k">return</span> <span class="n">T</span><span class="p">();}</span>
247+
<span class="n">T</span> <span class="n">t</span> <span class="o">=</span> <span class="n">Func</span><span class="p">();</span> <span class="c1">// 直接初期化</span>
248248
</code></pre></div>
249249
</p>
250250
<h2></h2>

lang/cpp23/lifetime_extension_in_range_based_for_loop.html

Lines changed: 5 additions & 3 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-12-05T02:54:34">
192+
2024年12月05日 02時54分34秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -316,9 +316,11 @@ <h3>例外規定について</h3>
316316
<ul>
317317
<li>この <code>t</code> は "一時オブジェクトの寿命が <code>for-range-initializer</code> 完全式の終わりではない場合" にも該当すると考えられる</li>
318318
<li>この <code>t</code> は、構文的に見ると <code>for-range-initializer</code> の中で生じたとは言えないという意見もある</li>
319-
<li>"<code>for-range-initializer</code> の中" を実行時のことだと解釈すると、そこから呼び出された関数の中なども含むことになるが、それを排除する規定が "一時オブジェクトの寿命が <code>for-range-initializer</code> 完全式の終わりではない場合" ではないか</li>
319+
<li>"<code>for-range-initializer</code> の中" を実行時のことだと解釈すると、そこから呼び出された関数の中なども含むことになるが、それを排除する規定が "一時オブジェクトの寿命が <code>for-range-initializer</code> 完全式の終わりではない場合" ではないか<ul>
320320
<li>インライン展開されたときなどに効いてくるのかもしれない</li>
321321
</ul>
322+
</li>
323+
</ul>
322324
<h2>検討されたほかの選択肢</h2>
323325
<p>一時オブジェクトの寿命について、範囲for文に限定しない汎用的な方法も検討されたが、最終的には範囲for文の例外規定となった。</p>
324326
<h2><a href="#relative-page" id="relative-page">関連項目</a></h2>

reference/algorithm.html

Lines changed: 3 additions & 3 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-07-07T01:39:14">
180-
2024年07月07日 01時39分14秒
179+
<span itemprop="datePublished" content="2024-12-05T02:54:34">
180+
2024年12月05日 02時54分34秒
181181
</span>
182182
<br/>
183183
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
184-
<span itemprop="name">suomesta</span>
184+
<span itemprop="name">Akira Takahashi</span>
185185
</span>
186186
が更新
187187
</small></p>

reference/compare/partial_ordering/op_equal.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@
200200

201201
<p class="text-right"><small>
202202
最終更新日時(UTC):
203-
<span itemprop="datePublished" content="2024-07-10T07:47:57">
204-
2024年07月10日 07時47分57秒
203+
<span itemprop="datePublished" content="2024-12-05T02:54:34">
204+
2024年12月05日 02時54分34秒
205205
</span>
206206
<br/>
207207
<span itemprop="author" itemscope itemtype="http://schema.org/Person">

reference/compare/strong_ordering/op_equal.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@
200200

201201
<p class="text-right"><small>
202202
最終更新日時(UTC):
203-
<span itemprop="datePublished" content="2024-07-10T07:47:57">
204-
2024年07月10日 07時47分57秒
203+
<span itemprop="datePublished" content="2024-12-05T02:54:34">
204+
2024年12月05日 02時54分34秒
205205
</span>
206206
<br/>
207207
<span itemprop="author" itemscope itemtype="http://schema.org/Person">

reference/compare/weak_ordering/op_equal.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@
200200

201201
<p class="text-right"><small>
202202
最終更新日時(UTC):
203-
<span itemprop="datePublished" content="2024-07-10T07:47:57">
204-
2024年07月10日 07時47分57秒
203+
<span itemprop="datePublished" content="2024-12-05T02:54:34">
204+
2024年12月05日 02時54分34秒
205205
</span>
206206
<br/>
207207
<span itemprop="author" itemscope itemtype="http://schema.org/Person">

reference/concepts/swap.html

Lines changed: 2 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-06-11T13:45:38">
192-
2024年06月11日 13時45分38秒
191+
<span itemprop="datePublished" content="2024-12-05T02:54:34">
192+
2024年12月05日 02時54分34秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">

reference/functional/copyable_function/op_constructor.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,12 @@
200200

201201
<p class="text-right"><small>
202202
最終更新日時(UTC):
203-
<span itemprop="datePublished" content="2023-10-31T09:24:16">
204-
2023年10月31日 09時24分16秒
203+
<span itemprop="datePublished" content="2024-12-05T02:54:34">
204+
2024年12月05日 02時54分34秒
205205
</span>
206206
<br/>
207207
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
208-
<span itemprop="name">yoh</span>
208+
<span itemprop="name">Akira Takahashi</span>
209209
</span>
210210
が更新
211211
</small></p>
@@ -291,9 +291,11 @@ <h2>事前条件</h2>
291291
<h2>効果</h2>
292292
<ul>
293293
<li>(1), (2) : 関数を持たない空の<code>copyable_function</code>オブジェクトを構築する。この方法で構築した後、<code><a href="op_bool.html">operator bool</a></code><code>false</code>を返す。</li>
294-
<li>(3) : <code>*this</code>の格納オブジェクトを</li>
294+
<li>(3) : <code>*this</code>の格納オブジェクトを<ul>
295295
<li><code>f</code>が値を保持していない場合、値を保持しない。</li>
296296
<li>そうでなければ、<code>f</code>が保持する値をコピーして保持する。</li>
297+
</ul>
298+
</li>
297299
<li>(4) : <code>f</code>が保持する状態を<code>*this</code>に移動する。移動された後の<code>f</code>は、<a class="cpprefjp-defined-word" data-desc="未規定の動作。事前の断りなく処理系によって異なる動作をする" href="../../../implementation-compliance.html#dfn-unspecified-behavior">未規定</a>な値を持つ有効な状態となる。</li>
298300
<li>(5) : <code>*this</code>の格納オブジェクトを<ul>
299301
<li><code>f</code>が関数ポインタ型、メンバ関数ポインタ型、メンバ変数ポインタ型いずれかのヌルポインタ値の場合、値を保持しない。</li>

reference/iterator/data.html

Lines changed: 2 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-06-11T13:45:38">
192-
2024年06月11日 13時45分38秒
191+
<span itemprop="datePublished" content="2024-12-05T02:54:34">
192+
2024年12月05日 02時54分34秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">

0 commit comments

Comments
 (0)