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

Name

Description

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 the specified other objects have the same value, and false otherwise. Two type_index objects have the same value if they refer to the same type.

operator<

Return true if the type referenced by this object is ordered before the type referenced by the specified other object in the implementation defined ordering of types defined by the compiler, and false otherwise.

operator<=

Return true if the type referenced by this object is the same as the type referenced by the specified other object, or ordered before the type referenced by the other in the implementation defined ordering of types defined by the compiler, and false otherwise.

operator>

Return true if the type referenced by this object is ordered after the type referenced by the specified other object in the implementation defined ordering of types defined by the compiler, and false otherwise.

operator>=

Return true if the type referenced by this object is the same as the type referenced by the specified other object, or ordered after the type referenced by the other in the implementation defined ordering of types defined by the compiler, and false otherwise.

operator<=>

Perform a three‐way comparison with the specified other object; return the result of that comparison.

Created with MrDocs