相关疑难解决方法(0)

编译时间模板实例化检查

是否可以检查模板类型是否已在编译时实例化,以便我可以在enable_if特化中使用此信息?

让我说我有

template <typename T> struct known_type { };
Run Code Online (Sandbox Code Playgroud)

如果在编译时实例化known_type,我可以以某种方式定义一些is_known_type,其值为true吗?

c++ templates type-traits c++11

10
推荐指数
1
解决办法
2942
查看次数

标签 统计

c++ ×1

c++11 ×1

templates ×1

type-traits ×1