std::type_index
有一个小于运算符,应该使用 std::type_info
但 std::type_info
没有小于运算符。
那么std::type_index
怎么会有小于运算符呢?
最佳答案
documentation for the comparison operator状态:
Compares the underlying std::type_info objects as defined by an implementation-defined ordering. The comparison is done by type_info::before.
关于c++ - std::type_index 的 less 是如何实现的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59775541/