[#BloombergLP-bslstl-Variant_ConvertIndex] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::Variant_ConvertIndex :relfileprefix: ../../ :mrdocs: This component‐private metafunction computes the index of the alternative in (template parameter) `t_VARIANT` that is the "unique" best match for conversion from `std::declval<t_TYPE>()`, or `bsl::variant_npos` if there is no such alternative. An alternative that occurs multiple times in `t_VARIANT` (possibly with varying cv‐qualifications) is considered to occur only once; thus, if all alternatives that are tied for the best match are the same type (possibly with varying cv‐qualifications), the result is the lowest index at which that type (with any cv‐qualification) occurs. == Synopsis Declared in `<bslstl_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_TYPE, class t_VARIANT> struct Variant_ConvertIndex : Variant_OverloadHelper<t_TYPE, t_VARIANT>::Index ---- == Base Classes [cols="1,4"] |=== | Name| Description | `Variant_OverloadHelper<t_TYPE, t_VARIANT>::Index` | |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#