[#BloombergLP-bslstl-Variant_TypeToIndexImpl-07]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Variant_TypeToIndexImpl-0a.adoc[Variant&lowbar;TypeToIndexImpl]&lt;t&lowbar;INDEX, t&lowbar;TYPE, BSLSTL&lowbar;VARIANT&lowbar;NOT&lowbar;A&lowbar;TYPE&gt;
:relfileprefix: ../../
:mrdocs:

Handle the case where `t&lowbar;TYPE` was not found in the alternative list&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    size&lowbar;t t&lowbar;INDEX,
    class t&lowbar;TYPE&gt;
struct xref:BloombergLP/bslstl/Variant_TypeToIndexImpl-0a.adoc[Variant&lowbar;TypeToIndexImpl]&lt;t&lowbar;INDEX, t&lowbar;TYPE, BSLSTL&lowbar;VARIANT&lowbar;NOT&lowbar;A&lowbar;TYPE&gt;
    : xref:bsl/integral_constant-02.adoc[bsl::integral&lowbar;constant&lt;size&lowbar;t, bsl&colon;&colon;variant&lowbar;npos&gt;]
----

== Description

This partial specialization is used when the list of alternatives `t&lowbar;HEAD, t&lowbar;TAIL&period;&period;&period;` is empty, i&period;e&period;, `t&lowbar;TYPE` wasn&apos;t found in the originally supplied list of alternatives&period;

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:bsl/integral_constant-02.adoc[bsl::integral&lowbar;constant&lt;size&lowbar;t, bsl&colon;&colon;variant&lowbar;npos&gt;]`
| Metafunction representing a compile&hyphen;time constant of the specified (template parameter) `t&lowbar;TYPE` with the specified (template parameter) `t&lowbar;VALUE`&period;
|===

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/Variant_TypeToIndexImpl-07/type.adoc[`type`] 
| Alias for this `integral&lowbar;constant` specialization&period;
| xref:BloombergLP/bslstl/Variant_TypeToIndexImpl-07/value_type.adoc[`value&lowbar;type`] 
| Alias for the (template parameter) `t&lowbar;TYPE`&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/Variant_TypeToIndexImpl-07/operator_call.adoc[`operator()`] 
| Return a copy of the template argument `t&lowbar;VALUE`&period;
| xref:BloombergLP/bslstl/Variant_TypeToIndexImpl-07/2conversion.adoc[`operator value&lowbar;type`] 
| Return a copy of the template argument `t&lowbar;VALUE`&period;
|===


== Static Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/Variant_TypeToIndexImpl-07/value.adoc[`value`] 
| The compile&hyphen;time constant value of this metafunction&period;
|===



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