[#BloombergLP-bdlb-Variant9-the] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/Variant9.adoc[Variant9]::the :relfileprefix: ../../../ :mrdocs: `the` overloads == Synopses Declared in `<bdlb_variant.h>` Return a reference providing modifiable access to the value of template parameter `TYPE` held by this variant object. `TYPE` must be the same as one of the types that this variant can hold. The behavior is undefined unless `is<TYPE>()` returns `true` and `TYPE` is not `void`. Note that `TYPE` must be specified explicitly, e.g., `myValue.the<int>()`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> TYPE& xref:BloombergLP/bdlb/VariantImp/the-0e.adoc[the](); ---- [.small]#xref:BloombergLP/bdlb/VariantImp/the-0e.adoc[_» more..._]# Return a reference providing non‐modifiable access to the value of template parameter `TYPE` held by this variant object. `TYPE` must be the same as one of the types that this variant can hold. The behavior is undefined unless `is<TYPE>()` returns `true` and `TYPE` is not `void`. Note that `TYPE` must be specified explicitly, e.g., `myValue.the<int>()`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> TYPE const& xref:BloombergLP/bdlb/VariantImp/the-0a.adoc[the]() const; ---- [.small]#xref:BloombergLP/bdlb/VariantImp/the-0a.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#