Constructors

Synopses

Declared in <bslma_bslallocator.h>

Create a proxy object that will forward allocation calls to the object pointed to by bslma::Default::defaultAllocator(). Postcondition: ` this‐>mechanism() == bslma::Default::defaultAllocator(); `

constexpr
allocator(allocator<void> const& original) noexcept = default;

Convert a bslma::Allocator pointer to an allocator object that forwards allocation calls to the object pointed to by the specified mechanism. If mechanism is 0, then the currently installed default allocator is used instead. Postcondition: ` this‐>mechanism() == bslma::Default::allocator(mechanism); `

template<class ANY_TYPE>
allocator(allocator<ANY_TYPE> const& original) noexcept;

Created with MrDocs