Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
La classe type_index esegue il wrapping di un puntatore a una classe type_info per facilitare l'indicizzazione in base a tali oggetti.
classe 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; };
Il costruttore inizializza un oggetto ptr con &tinfo.
name restituisce ptr->name().
hash_code restituisce ptr->hash_code().
operator== restituisce *ptr == right.ptr.
operator!= restituisce !(*this == right).
operator< restituisce *ptr->before(*right.ptr).
operator<= restituisce !(right < *this).
operator> restituisce right < *this.
operator>= restituisce !(*this < right).