首页 > 解决方案 > 从模板继承的这个结构的细节是什么?

问题描述

在声明中,可以将 c++ 语句转换为单词。

int a;  // a is declared an integer

我不明白下面的声明用什么词。

A 被声明为结构......?

struct A : public aTemplate<A> {};

我也不明白 A 如何在两个地方使用。

标签: c++templatesinheritance

解决方案


推荐阅读