allocation_result
specializations are returned from the allocate_at_least
member function of appropriate Allocator types (e.g. std::allocator::allocate_at_least) and std::allocator_traits::allocate_at_least.
Every specialization of allocation_result
has no base classes or declared members other than ptr
and count
, thus it is suitable for aggregate initialization and structured binding.
Pointer
which is typically used for the address of the first element in the storage allocated by allocate_at_least
SizeType
which is typically used for the actual number of elements in the storage allocated by allocate_at_least
Pointer
and SizeType
are a pointer to an object type and std::make_unsigned_t<std::ptrdiff_t> (which is almost always same as std::size_t) by default.
std::allocator<T>
) [edit] allocates storage at least as large as the requested size via an allocator
std::allocator_traits<Alloc>
) [edit]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4