Sdílet prostřednictvím


type_index – třída

Třída type_index zabalí ukazatel na type_info Třída , aby pomohla indexování těmito objekty.

třída 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; };

Konstruktor inicializuje ptr na &tinfo.

name vrátí ptr->name().

hash_code vrátí ptr->hash_code().

operator== vrátí *ptr == right.ptr.

operator!= vrátí !(*this == right).

operator< vrátí *ptr->before(*right.ptr).

operator<= vrátí !(right < *this).

operator> vrátí right < *this.

operator>= vrátí !(*this < right).

Viz také

Informace o typu modulu runtime
<typeindex>