[#bsl-allocator_traits-05e-allocate-07] = xref:bsl.adoc[bsl]::xref:bsl/allocator_traits-05e.adoc[allocator_traits<allocator<TYPE>>]::allocate :relfileprefix: ../../ :mrdocs: Allocate storage for `n` objects using the specified `m` allocator. == Synopsis Declared in `<bslma_bslallocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:bsl/allocator_traits-05e/pointer.adoc[pointer] allocate( xref:bsl/allocator_traits-05e/allocator_type.adoc[allocator_type]& m, xref:bsl/allocator_traits-05e/size_type.adoc[size_type] n); ---- == Return Value pointer to the allocated storage == Parameters [cols="1,4"] |=== | Name| Description | *m* | allocator that performs the allocation | *n* | number of objects to allocate storage for |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#