Return true unless lhs and rhs share the same mechanism.

Synopsis

Declared in <bslma_stdtestallocator.h>

template<
    class T1,
    class T2>
bool
operator!=(
    StdTestAllocator<T1> const& lhs,
    StdTestAllocator<T2> const& rhs);

Description

Return true unless the specified lhs and rhs are proxies for the same bslma::TestAllocator object, in which case return false. This is a practical implementation of the STL requirement that two allocators compare equal if and only if memory allocated from one can be deallocated from the other. Note that the two allocators need not be instantiated on the same type in order to compare equal.

Return Value

true unless lhs and rhs share the same mechanism object.

Parameters

Name

Description

lhs

The left‐hand test allocator operand.

rhs

The right‐hand test allocator operand.

Created with MrDocs