[#BloombergLP-bslma-operator_not_eq-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::operator!&equals;
:relfileprefix: ../../
:mrdocs:

Return `true` unless `lhs` and `rhs` share the same mechanism&period;

== Synopsis

Declared in `&lt;bslma&lowbar;stdtestallocator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class T1,
    class T2&gt;
bool
operator!&equals;(
    xref:BloombergLP/bslma/StdTestAllocator.adoc[StdTestAllocator&lt;T1&gt;] const& lhs,
    xref:BloombergLP/bslma/StdTestAllocator.adoc[StdTestAllocator&lt;T2&gt;] const& rhs);
----

== Description

Return `true` unless the specified `lhs` and `rhs` are proxies for the same `bslma&colon;&colon;TestAllocator` object, in which case return `false`&period; 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&period; Note that the two allocators need not be instantiated on the same type in order to compare equal&period;

== Return Value

`true` unless `lhs` and `rhs` share the same mechanism object&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| The left&hyphen;hand test allocator operand&period;
| *rhs*
| The right&hyphen;hand test allocator operand&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
