std::bad_typeid
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| 在头文件 <typeinfo> 中定义
|
||
| class bad_typeid : public std::exception; |
||
这种类型的异常时抛出一个typeid运营商应用到解引用空指针值或一个多态类型.
原文:
An exception of this type is thrown when a typeid operator is applied to a dereferenced null pointer value or a polymorphic type.
目录 |
[编辑] 成员函数
bad_typeid构造一个新的对象(公共成员函数) | |
Inherited from std::exception
Member functions
| [虚]</div></div>
|
析构该异常对象 ( std::exception的公有虚成员函数)
|
| [虚]</div></div>
|
返回一个说明字符串 ( std::exception的公有虚成员函数)
|
</div>
[编辑] 示例
