Return whether two allocators wrap the same underlying allocator.
Synopsis
Declared in <bsltf_stdstatefulallocator.h>
template<
class TYPE1,
class TYPE2,
bool PROPAGATE_ON_CONTAINER_COPY_CONSTRUCTION,
bool PROPAGATE_ON_CONTAINER_COPY_ASSIGNMENT,
bool PROPAGATE_ON_CONTAINER_SWAP,
bool PROPAGATE_ON_CONTAINER_MOVE_ASSIGNMENT,
bool IS_ALWAYS_EQUAL>
bool
operator==(
StdStatefulAllocator<TYPE1, PROPAGATE_ON_CONTAINER_COPY_CONSTRUCTION, PROPAGATE_ON_CONTAINER_COPY_ASSIGNMENT, PROPAGATE_ON_CONTAINER_SWAP, PROPAGATE_ON_CONTAINER_MOVE_ASSIGNMENT, IS_ALWAYS_EQUAL> const& lhs,
StdStatefulAllocator<TYPE2, PROPAGATE_ON_CONTAINER_COPY_CONSTRUCTION, PROPAGATE_ON_CONTAINER_COPY_ASSIGNMENT, PROPAGATE_ON_CONTAINER_SWAP, PROPAGATE_ON_CONTAINER_MOVE_ASSIGNMENT, IS_ALWAYS_EQUAL> const& rhs);
Description
Return true if the specified lhs and rhs have the same underlying test allocator, and false otherwise.
Return Value
true if lhs and rhs wrap the same allocator, else false
Parameters
Name |
Description |
lhs |
left‐hand operand |
rhs |
right‐hand operand |
Created with MrDocs