摘要: 运行时类型识别(run-time type idenfitication,RTTI)的功能由2个运算符实现: 1)typeid,用于返回表达式的类型; 2)dynamic_cast,用于将base class pointer(或reference)安全转型为derived class pointer 阅读全文
posted @ 2021-12-01 16:44 明明1109 阅读(119) 评论(0) 推荐(0) 编辑