type_index Class
O type_index classe encapsula um ponteiro para Classe type_info para ajudar na indexação por tais objetos.
class type_index {
public:
type_index(const type_info& tinfo);
const char *name() const;
size_t hash_code() const;
bool operator==(const type_info& right) const;
bool operator!=(const type_info& right) const;
bool operator<(const type_info& right) const;
bool operator<=(const type_info& right) const;
bool operator>(const type_info& right) const;
bool operator>=(const type_info& right) const;
};
O construtor inicializa ptr para &tinfo.
namereturns ptr->name().
hash_codeRetornaptr->hash_code().
operator==returns *ptr == right.ptr.
operator!=returns !(*this == right).
operator<returns *ptr->before(*right.ptr).
operator<=Retorna!(right < *this).
operator>returns right < *this.
operator>=returns !(*this < right).