Return whether this allocator can exchange memory with other.
Synopsis
Declared in <bslma_allocator.h>
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
Name |
Description |
other |
memory resource to compare with this allocator |
Created with MrDocs