BloombergLP::bslma::StdTestAllocator::StdTestAllocator

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>

template<class ANY_TYPE>
StdTestAllocator(StdTestAllocator<ANY_TYPE> const& rhs);

Parameters

NameDescription
rhsThe test allocator whose mechanism is shared.