bsl::allocator_traits<std::allocator<ALLOCATOR_TYPE>>::allocate

Allocate uninitialized storage for n objects, optionally using hint.

Synopsis

Declared in <bslma_allocatortraits.h>

using Base::allocate;

Description

Return a.allocate(n) or a.allocate(n, hint) from the underlying std::allocator_traits implementation.

Parameters

NameDescription
aallocator that performs the allocation
nnumber of objects to allocate storage for
hintoptional locality hint for the allocation