type_index Class

Die type_index-Klasse umschließt einen Zeiger auf ein type_info-Klasse bei der Indizierung durch diese Objekte zu unterstützen.

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

Der Konstruktor initialisiert ptr zu &tinfo.

name gibt ptr->name() zurück.

hash_code gibt ptr->hash_code(). zurück.

operator== gibt *ptr == right.ptr zurück.

operator!= gibt !(*this == right) zurück.

operator< gibt *ptr->before(*right.ptr) zurück.

operator<= gibt !(right < *this). zurück.

operator> gibt right < *this zurück.

operator>= gibt !(*this < right) zurück.

Siehe auch

Referenz

Laufzeit-Typeninformation

<typeindex>