Allocate storage for n objects, optionally using hint.

Synopsis

Declared in <bslma_allocatortraits.h>

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

Description

Return basicAllocator.allocate(n, hint).

Return Value

pointer to the allocated storage

Parameters

Name

Description

basicAllocator

allocator that performs the allocation

n

number of objects to allocate storage for

hint

optional locality hint for the allocation

Created with MrDocs