[#bsl-variant_size-07] = xref:bsl.adoc[bsl]::variant_size :relfileprefix: ../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_BSL_VARIANT> struct variant_size; ---- == Specializations [cols="1"] |=== | Name | xref:bsl/variant_size-05.adoc[`variant_size<t_BSL_VARIANT volatile>`] | xref:bsl/variant_size-02.adoc[`variant_size<t_BSL_VARIANT const>`] | xref:bsl/variant_size-0d.adoc[`variant_size<t_BSL_VARIANT const volatile>`] | xref:bsl/variant_size-09.adoc[`variant_size<variant<t_HEAD, t_TAIL...>>`] |=== == Derived Classes [cols="1,4"] |=== | Name| Description | xref:bsl/variant_size-02.adoc[`variant_size<t_BSL_VARIANT const>`] | | xref:bsl/variant_size-05.adoc[`variant_size<t_BSL_VARIANT volatile>`] | | xref:bsl/variant_size-0d.adoc[`variant_size<t_BSL_VARIANT const volatile>`] | |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#