最終更新日:2025/12/08
例文
ライブラリの作者は、CRTP(自己再帰テンプレートパターン)の基底クラステンプレート内にインクラスの friend 関数を定義することでテンプレートの展開を制限する手法を用いて、どのテンプレート生成を許可するかを制御しました。
復習用の問題
The library's author used the Barton-Nackman trick to restrict template expansion by defining an in-class friend function inside the base class template of the curiously recurring template pattern.
正解を見る
The library's author used the Barton-Nackman trick to restrict template expansion by defining an in-class friend function inside the base class template of the curiously recurring template pattern.
音声機能が動作しない場合はこちらをご確認ください
関連する単語
Barton-Nackman trick
固有名詞
日本語の意味
C++における制限されたテンプレート拡張の一形式。curiously recurring template patternの基本クラステンプレートの一部として、クラス内部でフレンド関数を定義する手法を指す。
関連語
項目の編集設定
- 項目の編集権限を持つユーザー - すべてのユーザー
- 項目の新規作成を審査する
- 項目の編集を審査する
- 項目の削除を審査する
- 重複の恐れのある項目名の追加を審査する
- 項目名の変更を審査する
- 審査に対する投票権限を持つユーザー - 編集者
- 決定に必要な投票数 - 1
例文の編集設定
- 例文の編集権限を持つユーザー - すべてのユーザー
- 例文の削除を審査する
- 審査に対する投票権限を持つユーザー - 編集者
- 決定に必要な投票数 - 1
問題の編集設定
- 問題の編集権限を持つユーザー - すべてのユーザー
- 審査に対する投票権限を持つユーザー - 編集者
- 決定に必要な投票数 - 1
