__gnu_pbds(3)
π NAME π
__gnu_pbds β GNU extensions for policy-based data structures for public use. β¨
Bestie, this is the libstdc++ extension that gives you policy-based data structures β and yeah, it's a lot of names, but every single one of them is here, fr fr. This page lives in the Library Functions Manual, section 3. π
β¨ SYNOPSIS β¨
π Classes π
okay so here's the full cast list, no skips, no cuts, everybody gets their moment:
struct associative_tagβ Basic associative-container.class basic_branchβ she's here, no blurb attached πΈstruct basic_branch_tagβ Basic branch structure.class basic_hash_tableβ present and accounted for πstruct basic_hash_tagβ Basic hash structure.struct basic_invalidation_guaranteeβ no description given, just vibes β¨struct binary_heap_tagβ Binary-heap (array-based).struct binomial_heap_tagβ Binomial-heap.class cc_hash_max_collision_check_resize_triggerβ A resize trigger policy based on collision checks. It keeps the simulated load factor lower than some given load factor.class cc_hash_tableβ iconic, no blurb needed πstruct cc_hash_tagβ Collision-chaining hash.struct container_errorβ Base class for exceptions.struct container_tagβ Base data structure tag.struct container_traitsβ Container traits.struct container_traits_baseβ Primary template, container traits base.struct container_traits_base< binary_heap_tag >β Specialization, binary heap.struct container_traits_base< binomial_heap_tag >β Specialization, binomial heap.struct container_traits_base< cc_hash_tag >β Specialization, cc hash.struct container_traits_base< gp_hash_tag >β Specialization, gp hash.struct container_traits_base< list_update_tag >β Specialization, list update.struct container_traits_base< ov_tree_tag >β Specialization, ov tree.struct container_traits_base< pairing_heap_tag >β Specialization, pairing heap.struct container_traits_base< pat_trie_tag >β Specialization, pat trie.struct container_traits_base< rb_tree_tag >β Specialization, rb tree.struct container_traits_base< rc_binomial_heap_tag >β Specialization, rc binomial heap.struct container_traits_base< splay_tree_tag >β Specialization, splay tree.struct container_traits_base< thin_heap_tag >β Specialization, thin heap.class direct_mask_range_hashingβ A mask range-hashing class (uses a bitmask).class direct_mod_range_hashingβ A mod range-hashing class (uses the modulo function).class gp_hash_tableβ no description, but she ate πstruct gp_hash_tagβ General-probing hash.class hash_exponential_size_policyβ A size policy whose sequence of sizes form an exponential sequence (typically powers of 2.class hash_load_check_resize_triggerβ A resize trigger policy based on a load check. It keeps the load factor between some load factors load_min and load_max.class hash_prime_size_policyβ A size policy whose sequence of sizes form a nearly-exponential sequence of primes.class hash_standard_resize_policyβ A resize policy which delegates operations to size and trigger policies.struct insert_errorβ An entry cannot be inserted into a container object for logical reasons (not, e.g., if memory is unabvailable, in which case theallocator_type's exception will be thrown).struct join_errorβ A join cannot be performed logical reasons (i.e., the ranges of the two container objects being joined overlaps.class linear_probe_fnβ A probe sequence policy using fixed increments.class list_updateβ yes bestie, she's real π¦struct list_update_tagβ List-update.class lu_counter_policyβ no blurb, still slaying πclass lu_move_to_front_policyβ also no blurb, also slayingstruct null_node_updateβ A null node updator, indicating that no node updates are required.struct null_typeβ Represents no type, or absence of type, for template tricks.struct ov_tree_tagβ Ordered-vector tree.struct pairing_heap_tagβ Pairing-heap.struct pat_trie_tagβ PATRICIA trie.struct point_invalidation_guaranteeβ no description provided, periodt πclass priority_queueβ the moment π₯struct priority_queue_tagβ Basic priority-queue.class quadratic_probe_fnβ A probe sequence policy using square increments.struct range_invalidation_guaranteeβ no blurb, just vibes β¨struct rb_tree_tagβ Red-black tree.struct rc_binomial_heap_tagβ Redundant-counter binomial-heap.struct resize_errorβ A container cannot be resized.class sample_probe_fnβ A sample probe policy.class sample_range_hashingβ A sample range-hashing functor.class sample_ranged_hash_fnβ A sample ranged-hash functor.class sample_ranged_probe_fnβ A sample ranged-probe functor.class sample_resize_policyβ A sample resize policy.class sample_resize_triggerβ A sample resize trigger policy.class sample_size_policyβ A sample size policy.class sample_tree_node_updateβ A sample node updator.struct sample_trie_access_traitsβ A sample trie element access traits.class sample_trie_node_updateβ A sample node updator.struct sample_update_policyβ A sample list-update policy.struct sequence_tagβ Basic sequence.struct splay_tree_tagβ Splay tree.struct string_tagβ Basic string container, inclusive of strings, ropes, etc.struct thin_heap_tagβ Thin heap.class treeβ she needs no introduction πclass tree_order_statistics_node_updateβ Functor updating ranks of entrees.struct tree_tagβ Basic tree structure.class trieβ also needs no introduction β¨class trie_order_statistics_node_updateβ Functor updating ranks of entrees.class trie_prefix_search_node_updateβ A node updator that allows tries to be searched for the range of values that match a certain prefix.struct trie_string_access_traitsβ no description given, still valid πstruct trie_tagβ Basic trie structure.struct trivial_iterator_tagβ A trivial iterator tag. Signifies that the iterators has none ofstd::iterators's movement abilities.
π¦ Typedefs π¦
typedef void trivial_iterator_difference_typeβ Prohibit moving trivial iterators.
π Functions π
these four are the throwers, bestie, they just throw:
void __throw_container_error ()void __throw_insert_error ()void __throw_join_error ()void __throw_resize_error ()
β Variables β
template<typename String, typename String::value_type Min_E_Val, typename String::value_type Max_E_Val, bool Reverse, typename _Alloc> detail::integral_constant< int, Reverse > trie_string_access_traits< String, Min_E_Val, Max_E_Val, Reverse, _Alloc >::s_rev_ind
πΈ Detailed Description πΈ
GNU extensions for policy-based data structures for public use.
That's the whole thing. That's the vibe. Public use, policy-based, GNU extensions. π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
okay and that's the whole page bestie, __gnu_pbds(3) from the libstdc++ crew β mwah, go build something iconic π
β¨π«Ά
π¦ 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
- centos-stream 10: gcc-toolset-15-libstdc++-docs 15.2.1-8.1.el10 Β· 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
- centos-stream 10: gcc-toolset-16-libstdc++-docs 16.2.1-1.3.el10 Β· 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
- centos-stream 10: libstdc++-docs 14.4.1-4.el10 Β· 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 43: libstdc++-docs 15.2.1-2.fc43 Β· 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 43: libstdc++-docs 15.3.1-1.fc43 Β· 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.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