Skip to content

Commit

Permalink
fix links to swappable_with concept
Browse files Browse the repository at this point in the history
swappable_withコンセプト説明はswappableコンセプトページに統合されている。
  • Loading branch information
yohhoy committed Jul 2, 2024
1 parent 729c591 commit 2a6ccb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion reference/type_traits/is_nothrow_swappable_with.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace std {
## 効果
型`T`と`U`の間で[`std::swappable_with`](/reference/concepts/swappable_with.md.nolink)要件を満たしており、2つのswap関数が共に例外を投げない場合は[`true_type`](true_type.md)から派生し、そうでなければ[`false_type`](false_type.md)から派生する。
型`T`と`U`の間で[`std::swappable_with`](/reference/concepts/swappable.md)要件を満たしており、2つのswap関数が共に例外を投げない場合は[`true_type`](true_type.md)から派生し、そうでなければ[`false_type`](false_type.md)から派生する。
型`T`と`U`は参照でなければswapできないので`T`と`U`が参照でない場合、結果は`false`となる。
Expand Down
4 changes: 2 additions & 2 deletions reference/type_traits/is_swappable_with.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ namespace std {
## 効果
型`T`と`U`の間で[`std::swappable_with`](/reference/concepts/swappable_with.md.nolink)要件を満たしていれば[`true_type`](true_type.md)から派生し、そうでなければ[`false_type`](false_type.md)から派生する。
型`T`と`U`の間で[`std::swappable_with`](/reference/concepts/swappable.md)要件を満たしていれば[`true_type`](true_type.md)から派生し、そうでなければ[`false_type`](false_type.md)から派生する。
型`T`と`U`は参照でなければswapできないので`T`と`U`が参照でない場合、結果は`false`となる。
簡単に説明すると[`std::swappable_with`](/reference/concepts/swappable_with.md.nolink)要件を満たすとは、2引数を取りその引数の値を入れ替えるswap関数が以下のようなコードで見つかることである。
簡単に説明すると[`std::swappable_with`](/reference/concepts/swappable.md)要件を満たすとは、2引数を取りその引数の値を入れ替えるswap関数が以下のようなコードで見つかることである。
```cpp
#include <utility>
Expand Down

0 comments on commit 2a6ccb4

Please sign in to comment.