[#BloombergLP-bslma-StdTestAllocator-2constructor-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/StdTestAllocator.adoc[StdTestAllocator]::StdTestAllocator :relfileprefix: ../../../ :mrdocs: Create a proxy object sharing the same mechanism object as the specified `rhs`. The newly constructed test allocator will compare equal to `rhs`, even though they are instantiated on different types. Postcondition: `this‐>mechanism() == rhs.mechanism()`. == Synopsis Declared in `<bslma_stdtestallocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ANY_TYPE> StdTestAllocator(xref:BloombergLP/bslma/StdTestAllocator.adoc[StdTestAllocator<ANY_TYPE>] const& rhs); ---- == Parameters [cols="1,4"] |=== | Name| Description | *rhs* | The test allocator whose mechanism is shared. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#