BloombergLP::bslma::AllocatorTraits_IsAlwaysEqual<ALLOC, false>

Sets is_always_equal to bsl::is_empty<ALLOC> when not defined by ALLOC.

Synopsis

Declared in <bslma_allocatortraits.h>

template<class ALLOC>
struct AllocatorTraits_IsAlwaysEqual<ALLOC, false>
    : bsl::is_empty<ALLOC>

Description

This struct template sets the boolean type for the attribute named is_always_equal to bsl::is_empty<ALLOC> if the given (template parameter) ALLOC does not define such an alias (i.e., if false == AllocatorTraits_HasIsAlwaysEqual<ALLOCATOR_TYPE>::value).

Base Classes

NameDescription
bsl::is_empty<ALLOC>Meta-function for detecting empty class types.

Type Aliases

NameDescription
type Alias for this integral_constant specialization.
value_type Alias for the (template parameter) t_TYPE.

Member Functions

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

Static Data Members

NameDescription
value The compile-time constant value of this metafunction.