This metafunction calculates the number of alternatives in the (possibly cv‐qualified) bsl::variant type of (template parameter) t_BSL_VARIANT.

Synopsis

Declared in <bslstl_variant.h>

template<class t_BSL_VARIANT>
struct variant_size;

Description

The primary template is not defined.

Specializations

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.

Derived Classes

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.

Created with MrDocs