BloombergLP::bslstl::Variant_UsesBslmaAllocatorAny

This component-private metafunction is derived from bsl::true_type if at least one template argument uses an allocator, and from bsl::false_type otherwise.

Synopsis

Declared in <bslstl_variant.h>

template<
    class t_HEAD = BSLSTL_VARIANT_NOT_A_TYPE,
    class... t_TAIL>
struct Variant_UsesBslmaAllocatorAny
    : bsl::integral_constant<bool, BloombergLP::bslma::UsesBslmaAllocator<t_HEAD>::value || BloombergLP::bslstl::Variant_UsesBslmaAllocatorAny<t_TAIL...>::value>

Base Classes

NameDescription
bsl::integral_constant<bool, BloombergLP::bslma::UsesBslmaAllocator<t_HEAD>::value || BloombergLP::bslstl::Variant_UsesBslmaAllocatorAny<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

NameDescription
type Alias for this integral_constant specialization.
value_type

Member Functions

NameDescription
operator() Return a copy of the template argument t_VALUE.
operator value_type

Static Data Members

Name
value

Specializations

Name
Variant_UsesBslmaAllocatorAny<BSLSTL_VARIANT_NOT_A_TYPE>