Constructors
Declared in <bslma_bslallocator.h>
Create an allocator that uses the default allocator mechanism.
allocator();
» more...
Create an allocator that copies original.
constexpr
allocator(allocator<void> const& original) noexcept = default;
» more...
Convert a bslma::Allocator pointer to an allocator object.
allocator(BloombergLP::bslma::Allocator* mechanism);
» more...
Create an allocator sharing the mechanism of the specified original.
template<class ANY_TYPE>
allocator(allocator<ANY_TYPE> const& original) noexcept;
» more...
| Name | Description |
|---|---|
| original | allocator whose mechanism is shared |
| mechanism | allocator mechanism to use; if 0, use the default |