Disabling RTTI might help produce an executable of a smaller size.
禁用rtti可能有助于产生更小的可执行文件。
If the sources don't use dynamic_cast or the typeid operator, Run Time type Identification (RTTI) might be disabled.
如果源代码没有使用dynamic_cast或者typeid操作符,那么就可以禁用运行时类型识别(RTTI)。
Note that disabling RTTI in a code that contains dynamic_cast or typeid might produce undesirable effects, including code crash.
请注意,在包含dynamic_cast或者typeid的代码中禁用rtti,可能会产生一些负面的影响,包括代码崩溃。
This requirement on RTTI was a restricting factor in the environments with limited resources that were being targeted on the project.
如果项目中的某些目标资源是有限的,对于RTTI的需求会成为这种环境中的限制性因素。
In these cases, RTTI offers an alternate mechanism.
在这些情况下,RTTI提供了可选的机制。
The toolchain binaries *do* support C++ exceptions and RTTI by default.
工具链二进制文件默认支持C++异常和RTTI(运行时类型识别)。
Returns a pointer to the run-time type information (RTTI) table for the object type.
返回一个指向用于说明对象类型的RTTI表的指针。
As an example of when RTTI might be useful, consider a class hierarchy for which we'd like to implement the equality operator.
作为说明何时可以使用RTTI的例子,考虑一个类层次,我们希望为它实现相等操作符。
The RTTI operators execute at run time for classes with virtual functions, but are evaluated at compile time for all other types.
对于带虚函数的类,在运行时执行rtti操作符,但对于其他类型,在编译时计算rtti操作符。
Run-time Type Identification (RTTI) allows programs that use pointers or references to base classes to retrieve the actual derived types of the objects to which these pointers or references refer.
通过运行时类型识别(RTTI),程序能够使用基类的指针或引用来检索这些指针或引用所指对象的实际派生类型。
Run-time Type Identification (RTTI) allows programs that use pointers or references to base classes to retrieve the actual derived types of the objects to which these pointers or references refer.
通过运行时类型识别(RTTI),程序能够使用基类的指针或引用来检索这些指针或引用所指对象的实际派生类型。
应用推荐