Count how many times t_TYPE occurs among the listed alternatives.
Synopsis
Declared in <bslstl_variant.h>
template<
class t_TYPE,
class t_HEAD = BSLSTL_VARIANT_NOT_A_TYPE,
class... t_TAIL>
struct Variant_CountType
: bsl::integral_constant<size_t, bsl::is_same<t_TYPE, t_HEAD>::value + Variant_CountType<t_TYPE, t_TAIL...>::value>
Description
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.
Base Classes
Name |
Description |
Metafunction representing a compile‐time constant of the specified (template parameter) |
Type Aliases
Name |
Description |
Alias for this |
|
Alias for the (template parameter) |
Member Functions
Name |
Description |
Return a copy of the template argument |
|
Return a copy of the template argument |
Static Data Members
Name |
Description |
The compile‐time constant value of this metafunction. |
Specializations
Name |
Description |
|
Specialization for purposes of the sim_cpp11_features.pl script. |
Created with MrDocs