BloombergLP::bslstl::Variant_ArrayHelper

This component-private struct is used to check whether an alternative given by (template parameter) t_TYPE is a potential match for an argument of a bsl::variant constructor or assignment operator that does not take an explicitly specified alternative type. The standard allows such conversion only when the declaration t_TYPE d_x[]= {expr}; is valid, where expr is the (forwarded) argument expression.

Synopsis

Declared in <bslstl_variant.h>

template<class t_TYPE>
struct Variant_ArrayHelper;

Data Members

NameDescription
d_x Array used to test narrowing conversions during overload resolution.