使用在模板类中定义的类型

时间:2015-04-20 12:37:51

标签: c++11

我想使用在模板类中定义的类型。我该怎么办?

template < typename A, typename B>
struct internal {
    const static std::string value; 
    typedef B type;
};

template < typename A > using external = struct internal<A,  int>;

external::type object;

0 个答案:

没有答案