[#bsl-allocator_traits-0ae-allocate]
= xref:bsl.adoc[bsl]::xref:bsl/allocator_traits-0ae.adoc[allocator&lowbar;traits&lt;std::allocator&lt;ALLOCATOR&lowbar;TYPE&gt;&gt;]::allocate
:relfileprefix: ../../
:mrdocs:

Allocate uninitialized storage for `n` objects, optionally using `hint`&period;

== Synopsis

Declared in `&lt;bslma&lowbar;allocatortraits&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
using Base::allocate;
----

== Description

Return `a&period;allocate(n)` or `a&period;allocate(n, hint)` from the underlying `std&colon;&colon;allocator&lowbar;traits` implementation&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| allocator that performs the allocation
| *n*
| number of objects to allocate storage for
| *hint*
| optional locality hint for the allocation
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
