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

Name

Description

bsl::is_empty<ALLOC>

Meta‐function for detecting empty class types.

Type Aliases

Name

Description

type

Alias for this integral_constant specialization.

value_type

Alias for the (template parameter) t_TYPE.

Member Functions

Name

Description

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

Name

Description

value

The compile‐time constant value of this metafunction.

Created with MrDocs