[#BloombergLP-bslstl-Pair_IndexOfType-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::Pair_IndexOfType :relfileprefix: ../../ :mrdocs: This meta‐function provides a compile‐time way to obtain the index of `bsl::pair` element, having the (template parameter) type `T`. If neither type of pair's element is equal to `T` or both pair's elements have the same type, code is not compiled. == Synopsis Declared in `<bslstl_pair.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class T1, class T2> struct Pair_IndexOfType; ---- == Specializations [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslstl/Pair_IndexOfType-00c.adoc[`Pair_IndexOfType<T1, T1, T2>`] | This partial specialization of `Pair_IndexOfType` returns the index of first element of pair. | xref:BloombergLP/bslstl/Pair_IndexOfType-006.adoc[`Pair_IndexOfType<T2, T1, T2>`] | This partial specialization of `Pair_IndexOfType` returns the index of second element of pair. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#