bsl::allocator<void>::allocator

Create an allocator that copies original.

Synopsis

Declared in <bslma_bslallocator.h>

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

Description

Create a proxy object sharing the same mechanism object as the specified original. The newly constructed allocator will compare equal to original, even though they may be instantiated on different types. Postcondition: ` this->mechanism() == original.mechanism(); `

Parameters

NameDescription
originalallocator whose mechanism is shared