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

Name

Description

a

allocator that performs the allocation

n

number of objects to allocate storage for

hint

optional locality hint for the allocation

Created with MrDocs