__GNU_PBDS::DETAIL::COND_DEALTOR(3cxx)
π
__gnu_pbds::detail::cond_dealtor< Entry, _Alloc > π
okay so bestie, welcome to the cxx manual page for this little libstdc++ icon β pull up a chair, we're getting into it. This page is your group chat receipts for __gnu_pbds::detail::cond_dealtor< Entry, _Alloc >, which honestly is a whole mouthful but we love her anyway. π
β¨ NAME β¨
__gnu_pbds::detail::cond_dealtor< Entry, _Alloc > β conditional deallocate constructor argument. that's the vibe. she deallocates, but conditionally, y'know? main character energy fr. π
β¨ SYNOPSIS β¨
the way you get to her is literally just this:
#include <cond_key_dtor_entry_dealtor.hpp>
no cap, that's the whole include. slay. πΈ
π Public Types
typedef HT_Map::entry entryβ the entry type, straight fromHT_Map. iconic.typedef HT_Map::entry_allocator entry_allocatorβ the allocator for entries, courtesy ofHT_Map.typedef alloc_traits::allocator_type entry_allocatorβ and yes bestie,entry_allocatorshows up a second time, this time asalloc_traits::allocator_type. the page lists both fr fr, we don't question it, we just vibe. πtypedef alloc_traits::pointer entry_pointerβ a pointer for entries, courtesy ofalloc_traits.typedef HT_Map::key_type key_typeβ the key type fromHT_Map. the key to my heart honestly. π«Ά
π¦ Public Member Functions
cond_dealtor (entry_allocator *p_a, entry *p_e)β constructor that takes a pointer to the entry allocator (p_a) plus a pointer to the entry (p_e). two-arg queen.cond_dealtor (entry_pointer p_e)β constructor that takes just anentry_pointer(p_e). minimalist era. β¨void set_key_destruct ()β flips on the key-destruct setting. do it, bestie.void set_no_action ()β sets it to no action. sometimes the move is literally doing nothing, and that's valid. πvoid set_no_action_destructor ()β sets the no-action destructor. different from the above, don't @ me.
π§ Protected Attributes
bool m_key_destructβ aboolkeeping track of the key-destruct situation.entry_allocator *const m_p_aβ a const pointer to theentry_allocator. she's const, she's committed.entry *const m_p_eβ a const pointer to the entry. also committed. no take-backs. π₯
π Detailed Description π
template<typename Entry, typename _Alloc>
class __gnu_pbds::detail::cond_dealtor< Entry, _Alloc >
she's a template, obviously β Entry and _Alloc, both in the building. π
the official lore: "Conditional deallocate constructor argument."
and the extra little note from the source: "Conditional dey destructor, cc_hash."
ok so "dey" is literally how it's written on the page β I'm not fixing it, it's giving me everything and I refuse to correct a legend. π
π Author π
generated automatically by Doxygen for libstdc++ from the source code. so nobody wrote this, the robot did. still ate tho. π€β¨
that's the whole page, bestie β go forth and conditionally deallocate. π
sign-off tea: this page comes from the libstdc++ docs and the cxx manual (that's the (3cxx) in the header, iykyk), and the one and only source of all this text is Doxygen, which generated it straight from the source code. bye bestie, drink water, free your pointers responsibly ππ¦πΈ
π¦ where this page comes from
- debian trixie: libstdc++-12-doc 12.4.0-5
- debian trixie: libstdc++-13-doc 13.3.0-16
- debian trixie: libstdc++-14-doc 14.2.0-19
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- ubuntu noble: libstdc++-11-doc 11.4.0-9ubuntu1
- ubuntu noble: libstdc++-11-doc 11.5.0-1ubuntu1~24.04.1
- ubuntu noble: libstdc++-12-doc 12.3.0-17ubuntu1
- ubuntu noble: libstdc++-12-doc 12.4.0-2ubuntu1~24.04.1
- ubuntu noble: libstdc++-13-doc 13.2.0-23ubuntu4
- ubuntu noble: libstdc++-13-doc 13.3.0-6ubuntu2~24.04.1
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu noble: libstdc++-14-doc 14.2.0-4ubuntu2~24.04.1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1.1
- ubuntu questing: libstdc++-12-doc 12.5.0-6ubuntu1
- ubuntu questing: libstdc++-13-doc 13.4.0-4ubuntu1
- ubuntu questing: libstdc++-14-doc 14.3.0-8ubuntu1
- ubuntu questing: libstdc++-15-doc 15.2.0-4ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms