[#BloombergLP-bslma-StdTestAllocator-allocate] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/StdTestAllocator.adoc[StdTestAllocator]::allocate :relfileprefix: ../../../ :mrdocs: Allocate enough (properly aligned) space for the specified `n` objects of (template parameter) `TYPE` by calling `allocate` on the mechanism object. The optionally specified `hint` argument is ignored by this test allocator type. The behavior is undefined unless `n <= max_size()`. == Synopsis Declared in `<bslma_stdtestallocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslma/StdTestAllocator/pointer.adoc[StdTestAllocator<TYPE>::pointer] allocate( xref:BloombergLP/bslma/StdTestAllocator/size_type.adoc[size_type] n, void const* hint = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#