📅  最后修改于: 2020-12-15 04:27:59             🧑  作者: Mango
它在标头中定义,并且与运算符typeid和dynamic_cast有关。
以下是std :: type_info的声明。
class type_info;
class type_info;
Sr.No. | Type & description |
---|---|
1 | type_info
It contains type information. |
2 | bad_cast
It throws an exception on failure to dynamic cast. |
3 | bad_typeid
It throws an exception on typeid of null point. |