[#BloombergLP-bdlb-VariantImp-is]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/VariantImp.adoc[VariantImp]::is
:relfileprefix: ../../../
:mrdocs:

Return whether this variant currently holds a `TYPE` value&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
bool
is() const;
----

== Description

`TYPE` must be the same as one of the types that this variant can hold&period; Note that `TYPE` must be specified explicitly, e&period;g&period;, `myValue&period;is&lt;int&gt;()`&period;

== Return Value

`true` if this variant currently holds a `TYPE` value, and `false` otherwise


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