来自http://llvm.org/docs/CodingStandards.html#ci_rtti_exceptions
RTTI确实广泛使用了使用isa<>、cast<>和dyn_cast<>等模板的
手卷形式。这种形式的RTTI是可选的,可以添加到任何类中。它的效率也比dynamic_cast<>高得多。
isa和其他是如何实现的?
https://stackoverflow.com/questions/6038330
相似问题