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

Name

Description

rhs

The test allocator whose mechanism is shared.

Created with MrDocs