__GNU_PBDS::DETAIL::BRANCH_POLICY(3)
π NAME π
__gnu_pbds::detail::branch_policy< Node_CItr, Node_Itr, _Alloc > β okay so bestie, this is the primary template, the base class for branch structure policies. She's the blueprint mama, the one everybody else inherits their whole vibe from. πΈ
This page lives in the libstdc++ manual (section 3), so jot that down. π
β¨ SYNOPSIS β¨
#include <branch_policy.hpp>
π¦ Inherited By π¦
__gnu_pbds::detail::trie_policy_base< Node_CItr, Node_Itr, _ATraits, _Alloc >
and
__gnu_pbds::tree_order_statistics_node_update< Node_CItr, Node_Itr, Cmp_Fn, _Alloc > β but like, [private], so don't get any ideas. π
π Protected Types π
okay these are all the typedefs she's handing down to her children, no cap:
typedef rebind_v::const_pointer const_pointertypedef rebind_v::const_reference const_referencetypedef Node_Itr::value_type it_typetypedef rebind_k::const_reference key_const_referencetypedef value_type::first_type key_typetypedef remove_const< key_type >::type rckey_typetypedef remove_const< value_type >::type rcvalue_typetypedef rebind_traits< _Alloc, rckey_type > rebind_ktypedef rebind_traits< _Alloc, rcvalue_type > rebind_vtypedef rebind_v::reference referencetypedef std::iterator_traits< it_type >::value_type value_type
it's giving type-alias royalty, honestly. π
π Protected Member Functions π
virtual it_type end ()β pure virtual, equals zero,=0. So she's literally just a promise, not an implementation. You must override her or nothing compiles. Periodt. πit_type end_iterator () constβ const, so she's not changing anything, just vibing and returning anit_type.
β Static Protected Member Functions β
static key_const_reference extract_key (const_reference r_val)β static, takes aconst_reference r_val, hands you back akey_const_reference. She pulls the key out of the value, and yes she does it without needing an instance. main character energy. π«Ά
π Detailed Description π
template<typename Node_CItr, typename Node_Itr, typename _Alloc>
struct __gnu_pbds::detail::branch_policy< Node_CItr, Node_Itr, _Alloc >
"Primary template, base class for branch structure policies." That's it, that's the whole lore. She's the foundation, the group chat admin, the one holding the branch structure together so everyone else can show up and be cute. π§
lowkey important: theend()up there is=0, meaning it's abstract. Do not try to instantiate this girl directly, she will not let you. π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. So no human wrote this, a robot did, and honestly? The robot ate. π₯
okay bye bestie, go forth and branch π
libstdc++ Β· __gnu_pbds..., _Alloc >(3) β that's the manual and section, mwah, love u, see u in the next page πβ¨
π¦ where this page comes from
- arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
- fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- fedora 44: libstdc++-docs 16.2.1-2.fc44
- fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms