[#BloombergLP-bslma-AllocatorTraits_IsAlwaysEqual-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::AllocatorTraits_IsAlwaysEqual :relfileprefix: ../../ :mrdocs: 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`). == Synopsis Declared in `<bslma_allocatortraits.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class ALLOC, bool = AllocatorTraits_HasIsAlwaysEqual<ALLOC>::value> struct AllocatorTraits_IsAlwaysEqual : ALLOC::is_always_equal ---- == Base Classes [cols="1,4"] |=== | Name| Description | `ALLOC::is_always_equal` | |=== == Specializations [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslma/AllocatorTraits_IsAlwaysEqual-0a.adoc[`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`). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#