bsl::allocator_traits<allocator<TYPE>>::allocate

Allocate storage for n objects using the specified m allocator.

Synopsis

Declared in <bslma_bslallocator.h>

static
pointer
allocate(
    allocator_type& m,
    size_type n);

Return Value

pointer to the allocated storage

Parameters

NameDescription
mallocator that performs the allocation
nnumber of objects to allocate storage for