[#BloombergLP-bsltf-operator_eq-04d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsltf.adoc[bsltf]::operator&equals;&equals;
:relfileprefix: ../../
:mrdocs:

Return whether two allocators wrap the same underlying allocator&period;

== Synopsis

Declared in `&lt;bsltf&lowbar;stdstatefulallocator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class TYPE1,
    class TYPE2,
    bool PROPAGATE&lowbar;ON&lowbar;CONTAINER&lowbar;COPY&lowbar;CONSTRUCTION,
    bool PROPAGATE&lowbar;ON&lowbar;CONTAINER&lowbar;COPY&lowbar;ASSIGNMENT,
    bool PROPAGATE&lowbar;ON&lowbar;CONTAINER&lowbar;SWAP,
    bool PROPAGATE&lowbar;ON&lowbar;CONTAINER&lowbar;MOVE&lowbar;ASSIGNMENT,
    bool IS&lowbar;ALWAYS&lowbar;EQUAL&gt;
bool
operator&equals;&equals;(
    xref:BloombergLP/bsltf/StdStatefulAllocator.adoc[StdStatefulAllocator&lt;TYPE1, PROPAGATE&lowbar;ON&lowbar;CONTAINER&lowbar;COPY&lowbar;CONSTRUCTION, PROPAGATE&lowbar;ON&lowbar;CONTAINER&lowbar;COPY&lowbar;ASSIGNMENT, PROPAGATE&lowbar;ON&lowbar;CONTAINER&lowbar;SWAP, PROPAGATE&lowbar;ON&lowbar;CONTAINER&lowbar;MOVE&lowbar;ASSIGNMENT, IS&lowbar;ALWAYS&lowbar;EQUAL&gt;] const& lhs,
    xref:BloombergLP/bsltf/StdStatefulAllocator.adoc[StdStatefulAllocator&lt;TYPE2, PROPAGATE&lowbar;ON&lowbar;CONTAINER&lowbar;COPY&lowbar;CONSTRUCTION, PROPAGATE&lowbar;ON&lowbar;CONTAINER&lowbar;COPY&lowbar;ASSIGNMENT, PROPAGATE&lowbar;ON&lowbar;CONTAINER&lowbar;SWAP, PROPAGATE&lowbar;ON&lowbar;CONTAINER&lowbar;MOVE&lowbar;ASSIGNMENT, IS&lowbar;ALWAYS&lowbar;EQUAL&gt;] const& rhs);
----

== Description

Return `true` if the specified `lhs` and `rhs` have the same underlying test allocator, and `false` otherwise&period;

== Return Value

`true` if `lhs` and `rhs` wrap the same allocator, else `false`

== Parameters

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


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