[#BloombergLP-bdlb-Variant3-the]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/Variant3.adoc[Variant3]::the
:relfileprefix: ../../../
:mrdocs:

`the` overloads

== Synopses

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

Return a reference providing modifiable access to the value of template parameter `TYPE` held by this variant object&period; `TYPE` must be the same as one of the types that this variant can hold&period; The behavior is undefined unless `is&lt;TYPE&gt;()` returns `true` and `TYPE` is not `void`&period; Note that `TYPE` must be specified explicitly, e&period;g&period;, `myValue&period;the&lt;int&gt;()`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
TYPE&
xref:BloombergLP/bdlb/VariantImp/the-0e.adoc[the]();
----

[.small]#xref:BloombergLP/bdlb/VariantImp/the-0e.adoc[_» more&period;&period;&period;_]#

Return a reference providing non&hyphen;modifiable access to the value of template parameter `TYPE` held by this variant object&period; `TYPE` must be the same as one of the types that this variant can hold&period; The behavior is undefined unless `is&lt;TYPE&gt;()` returns `true` and `TYPE` is not `void`&period; Note that `TYPE` must be specified explicitly, e&period;g&period;, `myValue&period;the&lt;int&gt;()`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
TYPE const&
xref:BloombergLP/bdlb/VariantImp/the-0a.adoc[the]() const;
----

[.small]#xref:BloombergLP/bdlb/VariantImp/the-0a.adoc[_» more&period;&period;&period;_]#


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