std::alloca...::deallocate(3)
okay so this is the std::alloca...::deallocate(3) page from the C++ Standard Libary manual, and we're about to make deallocation make sense, bestie π
β¨ NAME β¨
std::allocator_traits::deallocate β std::allocator_traits::deallocate periodt π
πΈ Synopsis πΈ
Defined in header <memory> β¨
static void deallocate( Alloc& a, pointer p, size_type n );
(since C++11) (until C++20)
static constexpr void deallocate( Alloc& a, pointer p, size_type n );
(since C++20)
Uses the allocator a to deallocate the storage referenced by p, by calling a.deallocate(p, n) π«Ά
π Parameters π
aβ allocator to usepβ pointer to the previously allocated storagenβ the number of objects the storage was allocated for
β Return value β
(none) β literally nothing, bestie π
π Example π
This section is incomplete π
Reason: no example
π¦ See also π¦
allocateβ allocates uninitialized storage using the allocator;[static](public static member function)deallocateβ deallocates storage (public member function ofstd::allocator<T>)
π Category π
- Todo no example
byeeee π«Ά β this page is from http://cppreference.com, dated 2024.06.10, and the footer signs it std::alloca...::deallocate(3) π
π¦ 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