bsl::allocator_traits<std::allocator<ALLOCATOR_TYPE>>::allocate

Allocate memory.

Synopsis

Declared in <bslma_allocatortraits.h>

[[nodiscard]]
constexpr
static
pointer
allocate(
    _Alloc& __a,
    size_type __n);

Description

Calls a.allocate(n)

Return Value

NOTE

The return value should not be discarded.

Parameters

NameDescription
__aAn allocator.
__nThe number of objects to allocate space for.