bsl::type_index

This class implements an in-core value-semantic type wrapping a standard type_info object.

Synopsis

Declared in <bslstl_typeindex.h>

class type_index;

Member Functions

NameDescription
type_index [constructor]Create a type_index object having a reference to the type designated by the specified target.
hash_code Return the hash_code of the referenced type_info object.
name Return the name of the referenced type_info object.
operator== Return true if this and other refer to the same type.
operator< Return true if this type is ordered before other.
operator<= Return true if this type is ordered before or equal to other.
operator> Return true if this type is ordered after other.
operator>= Return true if this type is ordered after or equal to other.
operator<=> Perform a three-way comparison with the specified other object; return the result of that comparison.