std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::allocate (3) - Linux Manuals
std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::allocate: std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::allocate
Command to display std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::allocate
manual in Linux: $ man 3 std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::allocate
NAME
std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::allocate - std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::allocate
Synopsis
Defined in header <scoped_allocator>
pointer allocate( size_type n ); (since C++11)
(until C++20)
[[nodiscard]] pointer allocate( size_type n ); (1) (since C++20)
pointer allocate( size_type n, const_void_pointer hint ); (since C++11)
(2) (until C++20)
[[nodiscard]] pointer allocate( size_type n, const_void_pointer hint ); (since C++20)
Uses the outer allocator to allocate uninitialized storage.
1) Calls std::allocator_traits<OuterAlloc>::allocate(outer_allocator(), n)
2) Additionally provides memory locality hint, by calling std::allocator_traits<OuterAlloc>::allocate(outer_allocator(), n, hint)
Parameters
n - the number of objects to allocate storage for
hint - pointer to a nearby memory location
Return value
The pointer to the allocated storage
See also
allocates uninitialized storage
allocate (public member function of std::allocator<T>)
allocate allocates uninitialized storage using the allocator
(public static member function of std::allocator_traits<Alloc>)
[static]
Pages related to std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::allocate
- std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::construct (3) - std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::construct
- std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::deallocate (3) - std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::deallocate
- std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::destroy (3) - std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::destroy
- std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::inner_allocator (3) - std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::inner_allocator
- std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::max_size (3) - std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::max_size
- std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::operator= (3) - std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::operator=
- std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::outer_allocator (3) - std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::outer_allocator
- std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::scoped_allocator_adaptor (3) - std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::scoped_allocator_adaptor
- std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::select_on_container_copy_construction (3) - std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::select_on_container_copy_construction
- std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::~scoped_allocator_adaptor (3) - std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::~scoped_allocator_adaptor
- std::scoped_allocator_adaptor (3) - std::scoped_allocator_adaptor
- std::scoped_lock (3) - std::scoped_lock
- std::scoped_lock<MutexTypes...>::scoped_lock (3) - std::scoped_lock<MutexTypes...>::scoped_lock
- std::scoped_lock<MutexTypes...>::~scoped_lock (3) - std::scoped_lock<MutexTypes...>::~scoped_lock
- std::scalbn,std::scalbnf,std::scalbnl,std::scalbln,std::scalblnf,std::scalblnl (3) - std::scalbn,std::scalbnf,std::scalbnl,std::scalbln,std::scalblnf,std::scalblnl