[#BloombergLP-bslma-Allocator-do_is_equal] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/Allocator.adoc[Allocator]::do_is_equal :relfileprefix: ../../../ :mrdocs: Return whether this allocator can exchange memory with `other`. == Synopsis Declared in `<bslma_allocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool do_is_equal(memory_resource const& other) const noexcept override; ---- == Description Return `true` if this allocator is equal to the specified `other` allocator, meaning (at least) that a memory block allocated by one can be deallocated by the other; otherwise return `false`. Unless overriden, this method returns `this == &other`. == Return Value `true` if the allocators can exchange memory == Parameters [cols="1,4"] |=== | Name| Description | *other* | memory resource to compare with this allocator |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#