Create a proxy sharing the same mechanism as the specified rhs.
Synopsis
Declared in <bslma_stdtestallocator.h>
template<class ANY_TYPE>
StdTestAllocator(StdTestAllocator<ANY_TYPE> const& rhs);
Description
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().
Parameters
Name |
Description |
rhs |
The test allocator whose mechanism is shared. |
Created with MrDocs