[#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 `other` refer to the same type. | xref:bsl/type_index/operator_lt.adoc[`operator<`] | Return `true` if this type is ordered before `other`. | xref:bsl/type_index/operator_le.adoc[`operator<=`] | Return `true` if this type is ordered before or equal to `other`. | xref:bsl/type_index/operator_gt.adoc[`operator>`] | Return `true` if this type is ordered after `other`. | xref:bsl/type_index/operator_ge.adoc[`operator>=`] | Return `true` if this type is ordered after or equal to `other`. | 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]#