c++运行时类型识别(rtti)

一个简单运行时类型识别html namespace rtti_ex { /* * 类型信息基类 */ class i_type_info { public: // 判断是不是指定类型 bool is(const char* _name) const { return name() == _name; } template<class T> bool is() const
相关文章
相关标签/搜索