2017年7月21日

c++ 中 typeid, typeinfo, typeof

摘要: C++ 提供的 <typeinfo> 这个头文件保存了一些类型,这些类型和 typeid, dynamic_cast 操作符相关。 1. std::type_info 这个类型在 <typeinfo> 中定义。 typeid 操作符会返回一个该类型的 const 左值对象。但是这个 std::typ 阅读全文

posted @ 2017-07-21 17:33 daghlny 阅读(15054) 评论(0) 推荐(0) 编辑

导航