std::experi...or::destroy(3)
β¨ NAME β¨
std::experimental::pmr::polymorphic_allocator::destroy β okay so literally the whole name is just std::experimental::pmr::polymorphic_allocator::destroy, like it's the destroy member of std::experimental::pmr::polymorphic_allocator π that's the vibe, that's the whole thing, bestie π
π Synopsis π
template< class U > (library fundamentals TS)
void destroy( U* p );
So it's a template over class U, and it lives in the library fundamentals TS β yes, the experimental one, the one that's giving "yes I'm in the standard library but make it β¨tentativeβ¨" πΈ
And what does it do? It destroys the object pointed to by p, as if by calling p->~U(). That's it. That's the whole function. No cap, it literally just calls the destructor for you π«Ά
π¦ Parameters π¦
pβ pointer to the object being destroyed. That's the one. That's the only one. Hand it a pointer, it ends that object's whole career π
π See also π
destroyβ destructs an object stored in the allocated storage,[static](function template) β
π Category π
- Noindexed pages π (yes, that's really the category, we don't make the rules)
slay, you now understand a tiny experimental allocator member function, and honestly? iconic behavior π§
source + version + date, for the record: http://cppreference.com, 2024.06.10 β mwah, ty for coming to my TED talk π
π¦ 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