Skip to content

Commit b3cac2a

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 76434e3 commit b3cac2a

File tree

4 files changed

+72
-889
lines changed

4 files changed

+72
-889
lines changed

reference/type_traits/is_nothrow_swappable_with.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-11T13:45:38">
192-
2024年06月11日 13時45分38秒
191+
<span itemprop="datePublished" content="2024-07-02T05:17:21">
192+
2024年07月02日 05時17分21秒
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">yoh</span>
197197
</span>
198198
が更新
199199
</small></p>
@@ -228,7 +228,7 @@ <h2>概要</h2>
228228
<h2>要件</h2>
229229
<p><code>T</code><code>U</code>が、完全型であること。もしくは<code>const</code>/<code>volatile</code>修飾された(あるいはされていない)<code>void</code>か、要素数不明の配列型であること。</p>
230230
<h2>効果</h2>
231-
<p><code>T</code><code>U</code>の間で<code><span href="https://cpprefjp.github.io/reference/concepts/swappable_with.md.nolink">std::swappable_with</span></code>要件を満たしており、2つのswap関数が共に例外を投げない場合は<code><a href="true_type.html">true_type</a></code>から派生し、そうでなければ<code><a href="false_type.html">false_type</a></code>から派生する。</p>
231+
<p><code>T</code><code>U</code>の間で<code><a href="../concepts/swappable.html">std::swappable_with</a></code>要件を満たしており、2つのswap関数が共に例外を投げない場合は<code><a href="true_type.html">true_type</a></code>から派生し、そうでなければ<code><a href="false_type.html">false_type</a></code>から派生する。</p>
232232
<p><code>T</code><code>U</code>は参照でなければswapできないので<code>T</code><code>U</code>が参照でない場合、結果は<code>false</code>となる。</p>
233233
<h2>備考</h2>
234234
<p>このメタ関数は<code>T</code><code>U</code>についてのswap関数の直接のコンテキストの妥当性(そのシグネチャで有効なswapがあるかどうか)のみをチェックする。そのため、結果が<code>true</code>となったとしてもswap関数の呼び出しができることは保証されない(その他の要因によりコンパイルエラーが発生する可能性がある)。</p>

reference/type_traits/is_swappable_with.html

Lines changed: 5 additions & 5 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-11T13:45:38">
192-
2024年06月11日 13時45分38秒
191+
<span itemprop="datePublished" content="2024-07-02T05:17:21">
192+
2024年07月02日 05時17分21秒
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">yoh</span>
197197
</span>
198198
が更新
199199
</small></p>
@@ -227,9 +227,9 @@ <h2>概要</h2>
227227
<h2>要件</h2>
228228
<p><code>T</code><code>U</code>が、完全型であること。もしくは<code>const</code>/<code>volatile</code>修飾された(あるいはされていない)<code>void</code>か、要素数不明の配列型であること。</p>
229229
<h2>効果</h2>
230-
<p><code>T</code><code>U</code>の間で<code><span href="https://cpprefjp.github.io/reference/concepts/swappable_with.md.nolink">std::swappable_with</span></code>要件を満たしていれば<code><a href="true_type.html">true_type</a></code>から派生し、そうでなければ<code><a href="false_type.html">false_type</a></code>から派生する。</p>
230+
<p><code>T</code><code>U</code>の間で<code><a href="../concepts/swappable.html">std::swappable_with</a></code>要件を満たしていれば<code><a href="true_type.html">true_type</a></code>から派生し、そうでなければ<code><a href="false_type.html">false_type</a></code>から派生する。</p>
231231
<p><code>T</code><code>U</code>は参照でなければswapできないので<code>T</code><code>U</code>が参照でない場合、結果は<code>false</code>となる。</p>
232-
<p>簡単に説明すると<code><span href="https://cpprefjp.github.io/reference/concepts/swappable_with.md.nolink">std::swappable_with</span></code>要件を満たすとは、2引数を取りその引数の値を入れ替えるswap関数が以下のようなコードで見つかることである。</p>
232+
<p>簡単に説明すると<code><a href="../concepts/swappable.html">std::swappable_with</a></code>要件を満たすとは、2引数を取りその引数の値を入れ替えるswap関数が以下のようなコードで見つかることである。</p>
233233
<p><div class="codehilite"><pre><span></span><code><span class="cp">#include</span> <span class="cpf"><a href="../utility.html">&lt;utility&gt;</a></span><span class="cp"></span>
234234

235235
<span class="k">template</span><span class="o">&lt;</span><span class="k">typename</span> <span class="n">T</span><span class="p">,</span> <span class="k">typename</span> <span class="n">U</span><span class="o">&gt;</span>

0 commit comments

Comments
 (0)