__GNU_PBDS::DETAIL::BRANCH_POLICY(3)

πŸ“¦
version 16.2.1+r23+gd564253eb6c8 Β· 6 versions
, in arch rolling, fedora 44

πŸ’– 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_pointer
  • typedef rebind_v::const_reference const_reference
  • typedef Node_Itr::value_type it_type
  • typedef rebind_k::const_reference key_const_reference
  • typedef value_type::first_type key_type
  • typedef remove_const< key_type >::type rckey_type
  • typedef remove_const< value_type >::type rcvalue_type
  • typedef rebind_traits< _Alloc, rckey_type > rebind_k
  • typedef rebind_traits< _Alloc, rcvalue_type > rebind_v
  • typedef rebind_v::reference reference
  • typedef 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 an it_type.

⭐ Static Protected Member Functions ⭐

  • static key_const_reference extract_key (const_reference r_val) β€” static, takes a const_reference r_val, hands you back a key_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: the end() 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