This struct template sets the boolean type for the attribute named is_always_equal to the nested type alias in the given (template parameter) ALLOC if ALLOC defines such an alias (i.e., if true == AllocatorTraits_HasIsAlwaysEqual<ALLOCATOR_TYPE>::value).
Declared in <bslma_allocatortraits.h>
template<
class ALLOC,
bool = AllocatorTraits_HasIsAlwaysEqual<ALLOC>::value>
struct AllocatorTraits_IsAlwaysEqual
: ALLOC::is_always_equal
| Name | Description |
|---|---|
ALLOC::is_always_equal |
| Name | Description |
|---|---|
AllocatorTraits_IsAlwaysEqual<ALLOC, false> | 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). |