std::allocation_result

Header: <memory>

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.

# Declarations

template< class Pointer, class SizeType = std::size_t >
struct allocation_result;

(since C++23)

# Notes

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.

# Example

This section is incompleteReason: no example

# See also