libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ allocate() [1/2]

template<typename _Tp>
constexpr pointer std::allocator_traits< allocator< _Tp > >::allocate ( allocator_type & __a,
size_type __n )
inlinestaticconstexpr

Allocate memory.

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

Calls a.allocate(n)

Definition at line 637 of file bits/alloc_traits.h.

638 { return __a.allocate(__n); }
static constexpr pointer allocate(_Alloc &__a, size_type __n)
Allocate memory.
Uniform interface to all allocator types.