std::type_info:: ~type_info
From cppreference.net
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type support
| Basic types | |||||||||||||||||||||
| Fixed width integer types (C++11) | |||||||||||||||||||||
| Fixed width floating-point types (C++23) | |||||||||||||||||||||
|
|||||||||||||||||||||
| Numeric limits | |||||||||||||||||||||
| C numeric limits interface | |||||||||||||||||||||
| Runtime type information | |||||||||||||||||||||
|
|||||||||||||||||||||
std::type_info
| Member functions | ||||
|
type_info::~type_info
|
||||
|
(until C++20)
|
||||
|
(C++11)
|
||||
|
virtual
~type_info
(
)
;
|
||
销毁一个类型为 std::type_info 的对象。该析构函数是公开虚函数,这使得 std::type_info 成为多态类。
注释
可以通过 typeid 运算符来检查 std::type_info 子对象的动态类型。
对于任何 std::type_info 对象,实现是否在程序结束时调用其析构函数是未指定的。