[#BloombergLP-bslma-operator_eq-07] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::operator== :relfileprefix: ../../ :mrdocs: Return `true` if the specified `lhs` and `rhs` are proxies for the same `bslma::TestAllocator` object. == Synopsis Declared in `<bslma_stdtestallocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T1, class T2> bool operator==( xref:BloombergLP/bslma/StdTestAllocator.adoc[StdTestAllocator<T1>] const& lhs, xref:BloombergLP/bslma/StdTestAllocator.adoc[StdTestAllocator<T2>] const& rhs); ---- == Description Return `true` if the specified `lhs` and `rhs` are proxies for the same `bslma::TestAllocator` object. 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` if `lhs` and `rhs` share the same mechanism object. == Parameters [cols="1,4"] |=== | Name| Description | *lhs* | The left‐hand test allocator operand. | *rhs* | The right‐hand test allocator operand. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#