typeid操作符
摘要:
typeid() operator返回type_info,返回值不可拷贝、不可赋值// Illustrates the typeid operator.#include #include using namespace std;struct PolyBase { virtual ~PolyBase() {} };struct PolyDer : PolyBase { PolyDer() {} };struct NonPolyBase {};struct NonPolyDer : NonPolyBase { NonPolyDer(int) {} };int main() { // Test p. 阅读全文
posted @ 2014-04-13 15:51 FlowingCloud 阅读(286) 评论(0) 推荐(0) 编辑