根据cplusplus.com,std::type_info::before()功能......
std::type_info::before()
如果类型在排序规则顺序中位于rhs类型之前,则返回true . 整理顺序只是由特定实现保留的内部顺序,并不一定与继承关系或声明顺序相关.
那有什么用呢?
c++ rtti typeinfo
c++ ×1
rtti ×1
typeinfo ×1