go top

curiously recurring template pattern

  • 奇异递归模板模式:一种在C++模板元编程中常见的技巧,用于实现静态多态。

网络释义英英释义

  奇特的递归模板模式

另一个选项,是使用奇特的递归模板模式(Curiously Recurring Template Pattern)来避免使用虚函数.通常我会选择这个方法,但是它会稍微增加抽象的复杂性,同时,因为COM类本身有一个vtable,所以这里也没有什么理由...

基于16个网页-相关网页

  异循环模板模式

此外,结构不允许继承,这会是有益的设计,如 诡异循环模板模式curiously recurring template pattern)的使用。

基于12个网页-相关网页

  模板递归模式

奇特的模板递归模式(Curiously Recurring Template Pattern)即将派生类本身作为模板参数传递给基类。

基于8个网页-相关网页

  模板模式

...emo::F2() delete d; } 参数化绑定类型 参数化绑定类型 CRTP CRTP 奇特的递归模板模式Curiously Recurring Template Pattern,CRTP) 一个类派生于一个类模板的实例,后者使用前 者作为模板实参 推广:一个类模板派生于一个类模板,后者使..

基于1个网页-相关网页

Curiously recurring template pattern

  • abstract: The curiously recurring template pattern (CRTP) is a C++ idiom in which a class X derives from a class template instantiation using X itself as template argument. The name of this idiom was coined by Jim Coplien, who had observed it in some of the earliest C++ template code

以上来源于: WordNet

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定