Determine whether t_TYPE occurs exactly once in a bsl::variant.
Synopsis
Declared in <bslstl_variant.h>
template<
class t_TYPE,
class t_HEAD,
class... t_TAIL>
struct Variant_HasUniqueType<t_TYPE, bsl::variant<t_HEAD, t_TAIL...>>
: bsl::integral_constant<bool, Variant_CountType<t_TYPE, t_HEAD, t_TAIL...>::value == 1>
Description
This partial specialization of Variant_HasUniqueType derives from bsl::true_type if t_TYPE occurs exactly once in the alternatives t_HEAD, t_TAIL... of a bsl::variant specialization.
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 |