[#bsl-allocator_traits-0ae-allocate] = xref:bsl.adoc[bsl]::xref:bsl/allocator_traits-0ae.adoc[allocator_traits<std::allocator<ALLOCATOR_TYPE>>]::allocate :relfileprefix: ../../ :mrdocs: Allocate uninitialized storage for `n` objects, optionally using `hint`. == Synopsis Declared in `<bslma_allocatortraits.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using Base::allocate; ---- == Description Return `a.allocate(n)` or `a.allocate(n, hint)` from the underlying `std::allocator_traits` implementation. == 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]#