[#BloombergLP-bslstl-Variant_CorrespondingStdVariant-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::Variant&lowbar;CorrespondingStdVariant
:relfileprefix: ../../
:mrdocs:

Provide the `std&colon;&colon;variant` type corresponding to `t&lowbar;TYPE`, or `void`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;TYPE&gt;
struct Variant&lowbar;CorrespondingStdVariant;
----

== Description

This component&hyphen;private metafunction declares a member `type` that is an alias to the `std&colon;&colon;variant` type corresponding to `t&lowbar;TYPE` if one exists, and `void` otherwise&period;

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/Variant_CorrespondingStdVariant-02/type.adoc[`type`] 
| Corresponding `std&colon;&colon;variant` type, or `void` if none exists&period;
|===


== Specializations

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/Variant_CorrespondingStdVariant-05.adoc[`Variant&lowbar;CorrespondingStdVariant&lt;bsl::variant&lt;t&lowbar;HEAD, t&lowbar;TAIL&period;&period;&period;&gt;&gt;`] 
| Provide the corresponding `std&colon;&colon;variant` type for a `bsl&colon;&colon;variant`&period;
|===



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