BloombergLP::bdlb::VariantImp::is

Return whether this variant currently holds a TYPE value.

Synopsis

Declared in <bdlb_variant.h>

template<class TYPE>
bool
is() const;

Description

TYPE must be the same as one of the types that this variant can hold. Note that TYPE must be specified explicitly, e.g., myValue.is<int>().

Return Value

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