bsl::allocator_traits::allocate

Return basicAllocator.allocate(n).

Synopsis

Declared in <bslma_allocatortraits.h>

static
pointer
allocate(
    ALLOCATOR_TYPE& basicAllocator,
    size_type n);

Return Value

pointer to the allocated storage

Parameters

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