std::experi...::deallocate(3)
β¨ NAME β¨
okay so bestie, this page is std::experi...::deallocate(3), and it lives in the C++ Standard Libary manual. The full main-character name is std::experimental::pmr::polymorphic_allocator::deallocate, and it is literally the deallocate member you came here for. π
πΈ Synopsis πΈ
void deallocate( T* p, std::size_t n ); (library fundamentals TS)
It deallocates the storage pointed to by p, which must have been allocated from a memory_resource x that compares equal to *resource() using x.allocate(n * sizeof(T), alignof(T)).
Equivalent to this:
this->resource()->deallocate(p, n * sizeof(T), alignof(T));
periodt. π
π Parameters π
pβ pointer to memory to deallocatenβ the number of objects originally allocated
π¦ Exceptions π¦
Throws nothing. literally nothing. no drama, no throw. β¨
π See also π
deallocateβ deallocates storage using the allocator[static](public static member function ofstd::allocator_traits<Alloc>)deallocateβ deallocates memory (public member function ofstd::experimental::pmr::memory_resource)
π Category π
Noindexed pages
source/version: http://cppreference.com, date: 2024.06.10, page: std::experi...::deallocate(3) β mwah, love u, bye ππ
π¦ 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