[#BloombergLP-bslstl-Variant_HasUniqueType-0d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::Variant&lowbar;HasUniqueType
:relfileprefix: ../../
:mrdocs:

This component&hyphen;private metafunction derives from `bsl&colon;&colon;true&lowbar;type` if (template parameter) `t&lowbar;TYPE` occurs exactly once as an alternative of (template parameter) `t&lowbar;VARIANT`, and `bsl&colon;&colon;false&lowbar;type` otherwise&period; An alternative must have the same cv&hyphen;qualification as `t&lowbar;TYPE` in order to be counted&period; The primary template (used when `t&lowbar;VARIANT` is not a `bsl&colon;&colon;variant`) is not defined&period;

== Synopsis

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

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

== Specializations

[cols="1"]
|===
| Name
| xref:BloombergLP/bslstl/Variant_HasUniqueType-02.adoc[`Variant&lowbar;HasUniqueType&lt;t&lowbar;TYPE, bsl::variant&lt;t&lowbar;HEAD, t&lowbar;TAIL&period;&period;&period;&gt;&gt;`] 
|===



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