bsl::variant_size

This metafunction calculates the number of alternatives in the (possibly cv-qualified) bsl::variant type of (template parameter) t_BSL_VARIANT. The primary template is not defined.

Synopsis

Declared in <bslstl_variant.h>

template<class t_BSL_VARIANT>
struct variant_size;

Specializations

Name
variant_size<t_BSL_VARIANT volatile>
variant_size<t_BSL_VARIANT const>
variant_size<t_BSL_VARIANT const volatile>
variant_size<variant<t_HEAD, t_TAIL...>>