[#bsl-type_index] = xref:bsl.adoc[bsl]::type_index :relfileprefix: ../ :mrdocs: This class implements an in‐core value‐semantic type wrapping a standard `type_info` object. == Synopsis Declared in `<bslstl_typeindex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class type_index; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:bsl/type_index/2constructor.adoc[`type_index`] [.small]#[constructor]# | Create a `type_index` object having a reference to the type designated by the specified `target`. | xref:bsl/type_index/hash_code.adoc[`hash_code`] | Return the `hash_code` of the referenced `type_info` object. | xref:bsl/type_index/name.adoc[`name`] | Return the `name` of the referenced `type_info` object. | xref:bsl/type_index/operator_eq.adoc[`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. | xref:bsl/type_index/operator_lt.adoc[`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. | xref:bsl/type_index/operator_le.adoc[`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. | xref:bsl/type_index/operator_gt.adoc[`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. | xref:bsl/type_index/operator_ge.adoc[`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. | xref:bsl/type_index/operator_3way.adoc[`operator<=>`] | Perform a three‐way comparison with the specified `other` object; return the result of that comparison. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#