最終更新日:2025/12/08

(programming) A form of restricted template expansion in C++, characterized by an in-class friend function definition appearing in the base class template component of the curiously recurring template pattern.

音声機能が動作しない場合はこちらをご確認ください
正解を見る

Barton-Nackman trick

編集履歴(0)
元となった辞書の項目

Barton-Nackman trick

固有名詞
日本語の意味
C++における制限されたテンプレート拡張の一形式。curiously recurring template patternの基本クラステンプレートの一部として、クラス内部でフレンド関数を定義する手法を指す。
このボタンはなに?

ライブラリの作者は、CRTP(自己再帰テンプレートパターン)の基底クラステンプレート内にインクラスの friend 関数を定義することでテンプレートの展開を制限する手法を用いて、どのテンプレート生成を許可するかを制御しました。

canonical

Dictionary quizzes to help you remember vocabulary

編集履歴(0)

ログイン / 新規登録

 

アプリをダウンロード!
DiQt

DiQt(ディクト)

無料

★★★★★★★★★★