std::scoped...::deallocate(3)
hey bestie π welcome to std::scoped...::deallocate(3) from the C++ Standard Libary man pages. yes, the title has ... in it and yes, we are keeping it exactly like that. letβs get into it π«Ά
π NAME π
std::scoped_allocator_adaptor::deallocate β std::scoped_allocator_adaptor::deallocate
like, itβs literally the same thing twice. iconic behavior, no notes π
π¦ Synopsis π¦
Defined in header <scoped_allocator>
void deallocate( pointer p, size_type n ) noexcept; (since C++11)
so whatβs the vibe? this one uses the outer allocator to deallocate the storage referenced by p, by calling:
std::allocator_traits<OuterAlloc>::deallocate(outer_allocator(), p, n)
thatβs the whole move, fr fr. also notice that noexcept in the signature β thatβs part of the whole look, donβt drop it β¨
πΈ Parameters πΈ
pβ pointer to the previously allocated memory π«Άnβ the number of objects for which the memory was allocated
π Return value π
(none)
literally nothing comes back. the return value is giving invisible main character energy π
π See also π
deallocateβ deallocates storage (public member function ofstd::allocator<T>)deallocateβ deallocates storage using the allocator[static](public static member function ofstd::allocator_traits<Alloc>)
source: http://cppreference.com Β· version/date: 2024.06.10 β mwah, bye bestie πβ¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms