[#bsl-allocator_traits-0108-allocate-0c]
= xref:bsl.adoc[bsl]::xref:bsl/allocator_traits-0108.adoc[allocator&lowbar;traits]::allocate
:relfileprefix: ../../
:mrdocs:

Return `basicAllocator&period;allocate(n)`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:bsl/allocator_traits-0108/pointer.adoc[pointer]
allocate(
    ALLOCATOR&lowbar;TYPE& basicAllocator,
    xref:bsl/allocator_traits-0108/size_type.adoc[size&lowbar;type] n);
----

== Return Value

pointer to the allocated storage

== Parameters

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


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