Condividi tramite


type_index Class

La classe di type_index esegue il wrapping di un puntatore a classe di type_information per soddisfare nell'indirizzamento da tali oggetti.

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;
};

Il costruttore inizializza ptr a &tinfo.

Il metodo name restituisce il valore ptr->name().

hash_code restituisce ptr->hash_code()..

Il metodo operator== restituisce il valore *ptr == right.ptr.

Il metodo operator!= restituisce il valore !(*this == right).

Il metodo operator< restituisce il valore *ptr->before(*right.ptr).

operator<= restituisce !(right < *this)..

Restituisce right < *thisdioperator>.

Il metodo operator>= restituisce il valore !(*this < right).

Vedere anche

Riferimenti

Informazioni sui tipi di runtime

<typeindex>