[#BloombergLP-bslstl-Variant_CountType-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::Variant_CountType :relfileprefix: ../../ :mrdocs: This component‐private metafunction calculates the number of times (template parameter) `t_TYPE` occurs in (template parameters) `t_HEAD, t_TAIL...`. An alternative must have the same cv‐qualification as `t_TYPE` in order to be counted. == Synopsis Declared in `<bslstl_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_TYPE, class t_HEAD = BSLSTL_VARIANT_NOT_A_TYPE, class... t_TAIL> struct Variant_CountType : xref:bsl/integral_constant-02.adoc[bsl::integral_constant<size_t, bsl::is_same<t_TYPE, t_HEAD>::value + Variant_CountType<t_TYPE, t_TAIL...>::value>] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:bsl/integral_constant-02.adoc[bsl::integral_constant<size_t, bsl::is_same<t_TYPE, t_HEAD>::value + Variant_CountType<t_TYPE, t_TAIL...>::value>]` | Metafunction representing a compile‐time constant of the specified (template parameter) `t_TYPE` with the specified (template parameter) `t_VALUE`. |=== == Type Aliases [cols="1,4"] |=== | Name| Description | xref:bsl/integral_constant-02/type.adoc[`type`] | Alias for this `integral_constant` specialization. | xref:bsl/integral_constant-02/value_type.adoc[`value_type`] | |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:bsl/integral_constant-02/operator_call.adoc[`operator()`] | Return a copy of the template argument `t_VALUE`. | xref:bsl/integral_constant-02/2conversion.adoc[`operator value_type`] | |=== == Static Data Members [cols="1"] |=== | Name | xref:bsl/integral_constant-02/value.adoc[`value`] |=== == Specializations [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslstl/Variant_CountType-0c.adoc[`Variant_CountType<t_TYPE, BSLSTL_VARIANT_NOT_A_TYPE>`] | Specialization for purposes of the sim_cpp11_features.pl script. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#