Return whether two allocators wrap different underlying allocators.

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 different underlying test allocators, and false otherwise.

Return Value

true if lhs and rhs wrap different allocators, else false

Parameters

Name

Description

lhs

left‐hand operand

rhs

right‐hand operand

Created with MrDocs