__GNU_PBDS::DETAIL::PAT_TRIE_MAP(3cxx)
π NAME π
__gnu_pbds::detail::pat_trie_map< Key, Mapped, Node_And_It_Traits, _Alloc > β PATRICIA trie. Periodt. π
This oneβs filed in the 3cxx manual section, bestie.
πΈ SYNOPSIS πΈ
okay so first things first, you include this:
#include <pat_trie_.hpp>
Inherits Node_And_It_Traits::synth_access_traits, Node_And_It_Traits::node_update, __gnu_pbds::detail::types_traits< Key, Mapped, _Alloc, false >, and __gnu_pbds::detail::pat_trie_base.
π Public Types π
the whole typedef lineup, literally all of it:
typedef traits_type::access_traits access_traitstypedef _Alloc allocator_typetypedef std::pair< size_type, size_type > comp_hashtypedef point_const_iterator const_iteratortypedef traits_base::const_pointer const_pointertypedef traits_base::const_reference const_referencetypedef traits_type::const_reverse_iterator const_reverse_iteratortypedef pat_trie_tag container_categorytypedef _Alloc::difference_type difference_typetypedef point_iterator iteratortypedef traits_base::key_const_pointer key_const_pointertypedef traits_base::key_const_reference key_const_referencetypedef traits_base::key_pointer key_pointertypedef traits_base::key_reference key_referencetypedef traits_base::key_type key_typetypedef traits_base::mapped_const_pointer mapped_const_pointertypedef traits_base::mapped_const_reference mapped_const_referencetypedef traits_base::mapped_pointer mapped_pointertypedef traits_base::mapped_reference mapped_referencetypedef traits_base::mapped_type mapped_typetypedef __nothrowcopy::indicator no_throw_indicatortypedef traits_type::node_const_iterator node_const_iteratortypedef traits_type::node_iterator node_iteratorenum node_type { i_node, leaf_node, head_node }β three types of nodes.typedef traits_type::node_update node_updatetypedef traits_type::const_iterator point_const_iteratortypedef traits_type::iterator point_iteratortypedef traits_base::pointer pointertypedef traits_base::reference referencetypedef traits_type::reverse_iterator reverse_iteratortypedef _Alloc::size_type size_typetypedef integral_constant< int, Store_Hash > store_extratypedef stored_data< value_type, size_type, Store_Hash > stored_data_typetypedef traits_base::value_type value_type
β¨ Public Member Functions β¨
the full function roster, no skips:
pat_trie_map (const access_traits &)pat_trie_map (const tree_order_statistics_node_update< Node_CItr, Node_Itr, Cmp_Fn, _Alloc > &)iterator begin ()const_iterator begin () constvoid clear ()bool empty () constiterator end ()const_iterator end () constconst_iterator erase (const_iterator)const_reverse_iterator erase (const_reverse_iterator)iterator erase (iterator)bool erase (key_const_reference)reverse_iterator erase (reverse_iterator)template<typename Pred > size_type erase_if (Pred)point_iterator find (key_const_reference)point_const_iterator find (key_const_reference) constaccess_traits & get_access_traits ()const access_traits & get_access_traits () constnode_update & get_node_update ()const node_update & get_node_update () conststd::pair< point_iterator, bool > insert (const_reference)void join (tree_order_statistics_node_update< Node_CItr, Node_Itr, Cmp_Fn, _Alloc > &)point_iterator lower_bound (key_const_reference)point_const_iterator lower_bound (key_const_reference) constsize_type max_size () constnode_iterator node_begin ()β returns anode_iteratorcorresponding to the node at the root of the tree.node_const_iterator node_begin () constβ returns aconst node_iteratorcorresponding to the node at the root of the tree.node_iterator node_end ()β returns anode_iteratorcorresponding to a node just after a leaf of the tree.node_const_iterator node_end () constβ returns aconst node_iteratorcorresponding to a node just after a leaf of the tree.mapped_reference operator[] (key_const_reference r_key)reverse_iterator rbegin ()const_reverse_iterator rbegin () constreverse_iterator rend ()const_reverse_iterator rend () constsize_type size () constvoid split (key_const_reference, tree_order_statistics_node_update< Node_CItr, Node_Itr, Cmp_Fn, _Alloc > &)void swap (tree_order_statistics_node_update< Node_CItr, Node_Itr, Cmp_Fn, _Alloc > &)point_iterator upper_bound (key_const_reference)point_const_iterator upper_bound (key_const_reference) const
π¦ Public Attributes π¦
no_throw_indicator m_no_throw_copies_indicatorstore_extra m_store_extra_indicator
πΏ Protected Member Functions πΏ
template<typename It > void copy_from_range (It, It)node_pointer recursive_copy_node (node_const_pointer)void value_swap (tree_order_statistics_node_update< Node_CItr, Node_Itr, Cmp_Fn, _Alloc > &)
π Detailed Description π
template<typename Key, typename Mapped, typename Node_And_It_Traits,
typename _Alloc>
class __gnu_pbds::detail::pat_trie_map< Key, Mapped, Node_And_It_Traits,
_Alloc >
"PATRICIA trie.
This implementation loosely borrows ideas from: 1) Fast Mergeable Integer Maps, Okasaki, Gill 1998 2) Ptset: Sets of integers implemented as Patricia trees, Jean-Christophe Filliatr, 2000"
π₯ Member Enumeration Documentation π₯
enum __gnu_pbds::detail::pat_trie_base::node_type [inherited]
Three types of nodes. i_node is used by _Inode, leaf_node by _Leaf, and head_node by _Head. π«Ά
β Member Function Documentation β
node_begin ()
template<typename Key , typename Mapped , typename Node_And_It_Traits , typename _Alloc > node_iterator __gnu_pbds::detail::pat_trie_map< Key, Mapped, Node_And_It_Traits, _Alloc >::node_begin () [inline]
Returns a node_iterator corresponding to the node at the root of the tree.
node_begin () const
template<typename Key , typename Mapped , typename Node_And_It_Traits , typename _Alloc > node_const_iterator __gnu_pbds::detail::pat_trie_map< Key, Mapped, Node_And_It_Traits, _Alloc >::node_begin () const [inline]
Returns a const node_iterator corresponding to the node at the root of the tree.
node_end ()
template<typename Key , typename Mapped , typename Node_And_It_Traits , typename _Alloc > node_iterator __gnu_pbds::detail::pat_trie_map< Key, Mapped, Node_And_It_Traits, _Alloc >::node_end () [inline]
Returns a node_iterator corresponding to a node just after a leaf of the tree.
node_end () const
template<typename Key , typename Mapped , typename Node_And_It_Traits , typename _Alloc > node_const_iterator __gnu_pbds::detail::pat_trie_map< Key, Mapped, Node_And_It_Traits, _Alloc >::node_end () const [inline]
Returns a const node_iterator corresponding to a node just after a leaf of the tree.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
okay thatβs the whole page, bestie π β source/version vibes: libstdc++, auto-generated by Doxygen straight from the source code; manual section: 3cxx; date: the footer doesnβt show one, so Iβm not making one up. πβ¨
π¦ 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