Constructors

Synopses

Declared in <bslma_bslallocator.h>

Create an allocator that uses the default allocator mechanism.

Create an allocator that copies original.

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

Convert a bslma::Allocator pointer to an allocator object.

Create an allocator sharing the mechanism of the specified original.

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

Parameters

Name

Description

original

allocator whose mechanism is shared

mechanism

allocator mechanism to use; if 0, use the default

Created with MrDocs