Return a non‐modifiable reference to the held TYPE value.
Synopsis
Declared in <bdlb_variant.h>
template<class TYPE>
TYPE const&
the() const;
Description
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>().
Return Value
non‐modifiable reference to the held TYPE value
Created with MrDocs