FreeBSD Manual Pages
std::allocation_result(3) C++ Standard Libary std::allocation_result(3) NAME std::allocation_result - std::allocation_result Synopsis Defined in header <memory> template< class Pointer, class SizeType = std::size_t > (since C++23) struct allocation_result; allocation_result specializations are returned from the allo- cate_at_least member function of appropriate Allocator types (e.g. std::allocator::allo- cate_at_least) and std::allocator_traits::allocate_at_least. Every specialization of allocation_result has no base classes or de- clared members other than ptr and count, thus it is suitable for aggregate initial- ization and structured binding. Template parameters Pointer - typically std::allocator_traits<Alloc>::pointer, where Alloc is an Allocator type SizeType - typically std::allocator_traits<Alloc>::size_type, where Alloc is an Allocator type Data members Member name Definition a pointer of type Pointer which is typically used for the address of the ptr first element in the storage allocated by allo- cate_at_least (public member object) a value of type SizeType which is typically used for the actual number count of elements in the storage allocated by allo- cate_at_least (public member object) 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. Feature-test macro Value Std Feature __cpp_lib_allocate_at_least 202302L (C++23) Size-feedback in the Al- locator interface Example This section is incomplete Reason: no example See also allocate_at_least allocates uninitialized storage at least as large as requested (C++23) size (public member function of std::allocator<T>) allocates storage at least as large as the re- quested size via an allocate_at_least allocator [static] (C++23) (public static member function of std::alloca- tor_traits<Alloc>) Category: * Todo no example http://cppreference.com 2024.06.10 std::allocation_result(3)
NAME | Synopsis | Template parameters | Notes | Example | See also | Category:
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::allocation_result&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>
