__GNU_PBDS::DETAIL::OV_TREE_MAP(3cxx)
π NAME
__gnu_pbds::detail::ov_tree_map< Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc > β an ordered-vector tree associative-container β¨ (yes bestie, that whole template signature is the name, we don't make the rules, the C++ committee does π)
So real talk: this little icon lives in the 3cxx section of the manual β that's the libstdc++ corner of manpage land π
πΈ SYNOPSIS
#include <ov_tree_map_.hpp>
It inherits Cmp_Fn, Node_And_It_Traits::node_update, and __gnu_pbds::detail::types_traits< Key, Mapped, _Alloc, false >. Like, all three. It's a nepo baby of inheritance, and honestly? It ate π
π§ Classes
class cond_dtorβ the conditional destructor. It destructs conditionally, iykyk π¦
π Public Types
Every single one, no skipping, no cap:
typedef _Alloc allocator_typetypedef Cmp_Fn cmp_fntypedef 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 ov_tree_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_iteratortypedef traits_type::node_update node_updatetypedef const_pointer point_const_iteratortypedef pointer point_iteratortypedef traits_base::pointer pointertypedef traits_base::reference referencetypedef _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
That's the whole roster, bestie. Every alias accounted for π«Ά
π Public Member Functions
ov_tree_map (const Cmp_Fn &)ov_tree_map (const Cmp_Fn &, const node_update &)ov_tree_map (const tree_order_statistics_node_update< Node_CItr, Node_Itr, Cmp_Fn, _Alloc > &)iterator begin ()const_iterator begin () constvoid clear ()template<typename It > void copy_from_range (It, It)bool empty () constiterator end ()const_iterator end () constiterator erase (iterator it)bool erase (key_const_reference)template<typename Pred > size_type erase_if (Pred)point_iterator find (key_const_reference r_key)point_const_iterator find (key_const_reference r_key) constCmp_Fn & get_cmp_fn ()const Cmp_Fn & get_cmp_fn () conststd::pair< point_iterator, bool > insert (const_reference r_value)void join (tree_order_statistics_node_update< Node_CItr, Node_Itr, Cmp_Fn, _Alloc > &)point_iterator lower_bound (key_const_reference r_key)point_const_iterator lower_bound (key_const_reference r_key) constsize_type max_size () constnode_iterator node_begin ()β returns anode_iteratorpointing at the node at the root of the tree π³node_const_iterator node_begin () constβ returns aconst node_iteratorpointing at the node at the root of the tree π³node_iterator node_end ()β returns anode_iteratorpointing at a node just after a leaf of the tree πnode_const_iterator node_end () constβ returns aconst node_iteratorpointing at a node just after a leaf of the tree πmapped_reference operator[] (key_const_reference r_key)size_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 r_key)point_const_iterator upper_bound (key_const_reference r_key) const
β Public Attributes
no_throw_indicator m_no_throw_copies_indicatorstore_extra m_store_extra_indicator
π¦ Detailed Description
template<typename Key, typename Mapped, typename Cmp_Fn, typename
Node_And_It_Traits, typename _Alloc>
class __gnu_pbds::detail::ov_tree_map< Key, Mapped, Cmp_Fn,
Node_And_It_Traits, _Alloc >
"Ordered-vector tree associative-container." β the original quote, verbatim, because it's iconic and we respect it π
That's the whole pitch. An ordered-vector tree. An associative container. It's giving data-structure main character energy and we're obsessed π
β¨ Member Function Documentation
π³ node_begin
template<typename Key , typename Mapped , typename Cmp_Fn , typename
Node_And_It_Traits , typename _Alloc > node_iterator
__gnu_pbds::detail::ov_tree_map< Key, Mapped, Cmp_Fn,
Node_And_It_Traits, _Alloc >::node_begin () [inline]
Returns a node_iterator corresponding to the node at the root of the tree. That's the top of the whole vibe, bestie β the main character node π
π³ node_begin () const
template<typename Key , typename Mapped , typename Cmp_Fn , typename
Node_And_It_Traits , typename _Alloc > node_const_iterator
__gnu_pbds::detail::ov_tree_map< Key, Mapped, Cmp_Fn,
Node_And_It_Traits, _Alloc >::node_begin () const [inline]
Returns a const node_iterator corresponding to the node at the root of the tree. Same root, but make it const β no touching, only admiring π
π node_end
template<typename Key , typename Mapped , typename Cmp_Fn , typename
Node_And_It_Traits , typename _Alloc > node_iterator
__gnu_pbds::detail::ov_tree_map< Key, Mapped, Cmp_Fn,
Node_And_It_Traits, _Alloc >::node_end () [inline]
Returns a node_iterator corresponding to a node just after a leaf of the tree. It's the one-past-the-end situation but make it leafy π
π node_end () const
template<typename Key , typename Mapped , typename Cmp_Fn , typename
Node_And_It_Traits , typename _Alloc > node_const_iterator
__gnu_pbds::detail::ov_tree_map< Key, Mapped, Cmp_Fn,
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. Constified leaf-adjacent action, slay π§
π Author
Generated automatically by Doxygen for libstdc++, straight from the source code. Not a human, not a vibe curator β a documentation generator. And yet, here we are β¨
π that's the whole page, bestie β libstdc++ 3cxx manual, __gnu_pbds::detail::ov_tree_map, generated by Doxygen from the source code. go forth and be ordered-vector-tree-pilled π«Άπ
π¦ 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