type_index Sınıfı
sınıfı, type_index
bu tür nesneler tarafından dizin oluşturmada yardımcı olması için bir işaretçiyi type_info Sınıfına sarmalar.
class type_index { public: type_index(const type_info&tinfo); const char *name() const; size_t hash_code() const; bool işleci==(const type_info&sağ) const; bool işleci!=(const type_info&sağ) const; bool işleci<(const type_info&right) const; bool operator<=(const type_info type_info>&right) const; bool operator>=(const type_info&right) const; };
Oluşturucu olarak &tinfo
başlatılırptr
.
name
döndürür ptr->name()
.
hash_code
döndürür ptr->hash_code()
.
operator==
döndürür *ptr == right.ptr
.
operator!=
döndürür !(*this == right)
.
operator<
döndürür *ptr->before(*right.ptr)
.
operator<=
döndürür !(right < *this)
.
operator>
döndürür right < *this
.
operator>=
döndürür !(*this < right)
.