This metafunction calculates the number of alternatives in the (possibly cv-qualified) bsl::variant type of (template parameter) t_BSL_VARIANT.
Declared in <bslstl_variant.h>
template<class t_BSL_VARIANT>
struct variant_size;
The primary template is not defined.
| Name | Description |
|---|---|
variant_size<t_BSL_VARIANT volatile> | This partial specialization of variant_size strips a top-level volatile qualifier from t_BSL_VARIANT before forwarding to the primary metafunction. |
variant_size<t_BSL_VARIANT const> | This partial specialization of variant_size strips a top-level const qualifier from t_BSL_VARIANT before forwarding to the primary metafunction. |
variant_size<t_BSL_VARIANT const volatile> | Strip const volatile from t_BSL_VARIANT before computing its size. |
variant_size<variant<t_HEAD, t_TAIL...>> | Provide the number of alternatives of a bsl::variant specialization. |
| Name | Description |
|---|---|
variant_size<t_BSL_VARIANT const> | This partial specialization of variant_size strips a top-level const qualifier from t_BSL_VARIANT before forwarding to the primary metafunction. |
variant_size<t_BSL_VARIANT volatile> | This partial specialization of variant_size strips a top-level volatile qualifier from t_BSL_VARIANT before forwarding to the primary metafunction. |
variant_size<t_BSL_VARIANT const volatile> | Strip const volatile from t_BSL_VARIANT before computing its size. |