[#bsl-type_index]
= xref:bsl.adoc[bsl]::type&lowbar;index
:relfileprefix: ../
:mrdocs:

This class implements an in&hyphen;core value&hyphen;semantic type wrapping a standard `type&lowbar;info` object&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;typeindex&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class type&lowbar;index;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:bsl/type_index/2constructor.adoc[`type&lowbar;index`]         [.small]#[constructor]#
| Create a `type&lowbar;index` object having a reference to the type designated by the specified `target`&period;
| xref:bsl/type_index/hash_code.adoc[`hash&lowbar;code`] 
| Return the `hash&lowbar;code` of the referenced `type&lowbar;info` object&period;
| xref:bsl/type_index/name.adoc[`name`] 
| Return the `name` of the referenced `type&lowbar;info` object&period;
| xref:bsl/type_index/operator_eq.adoc[`operator&equals;&equals;`] 
| Return `true` if this and the specified `other` objects have the same value, and `false` otherwise&period; Two `type&lowbar;index` objects have the same value if they refer to the same type&period;
| xref:bsl/type_index/operator_lt.adoc[`operator&lt;`] 
| 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&period;
| xref:bsl/type_index/operator_le.adoc[`operator&lt;&equals;`] 
| 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&period;
| xref:bsl/type_index/operator_gt.adoc[`operator&gt;`] 
| 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&period;
| xref:bsl/type_index/operator_ge.adoc[`operator&gt;&equals;`] 
| 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&period;
| xref:bsl/type_index/operator_3way.adoc[`operator&lt;&equals;&gt;`] 
| Perform a three&hyphen;way comparison with the specified `other` object&semi; return the result of that comparison&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
