Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Die type_index-Klasse umschließt einen Zeiger auf eine type_info-Klasse ein, um die 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.
gibt right < *thisoperator>.
operator>= gibt !(*this < right) zurück.