diff --git a/start_editing/class_template_page.md b/start_editing/class_template_page.md index e6c268aa8..525e7d8eb 100644 --- a/start_editing/class_template_page.md +++ b/start_editing/class_template_page.md @@ -102,7 +102,7 @@ namespace std { (比較演算子がデフォルト定義され、個別ページを作らない場合の記述例。オペランドの組み合わせ数が多い場合には、個別ページを作ることを推奨する) | 名前 | 説明 | 対応バージョン | -|-----|-----|-----| +|------|------|----------------| | `bool operator==(const X&, const X&) = default;` | 等値比較 | | | `bool operator!=(const X&, const X&);` | 非等値比較 (`==`により使用可能) | | | `strong_ordering operator<=>(const X&, const X&) = default;` | 三方比較 | | @@ -112,6 +112,15 @@ namespace std { | `bool operator>=(const X&, const X&);` | 左辺が右辺以上かを判定する (`<=>`により使用可能) | | +## 非メンバ(*Hidden friends*)関数 + +(`friend`付きメンバ関数はこの見出し以下で記載する。[`counted_iterator`](/reference/iterator/counted_iterator.md)を例として参照) + +| 名前 | 説明 | 対応バージョン | +|------|------|----------------| +| `swap` | 2つのオブジェクトを入れ替える | | + + ## 例 ```cpp example // (ここには、クラスを解説するための、サンプルコードを記述します。)