libstdc++
__gnu_pbds::tree< Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc > Class Template Reference
Inheritance diagram for __gnu_pbds::tree< Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc >:
[legend]

Public Types

typedef Cmp_Fn cmp_fn
 
typedef detail::tree_traits< Key, Mapped, std::less< Key >, null_node_update, rb_tree_tag, std::allocator< char > > ::node_update node_update
 

Public Member Functions

 tree (const cmp_fn &c)
 
 tree (const tree &other)
 
template<typename It >
 tree (It first, It last)
 
template<typename It >
 tree (It first, It last, const cmp_fn &c)
 
treeoperator= (const tree &other)
 
void swap (tree &other)
 

Detailed Description

template<typename Key, typename Mapped, typename Cmp_Fn = std::less<Key>, typename Tag = rb_tree_tag, template< typename Node_CItr, typename Node_Itr, typename Cmp_Fn_, typename _Alloc_ > class Node_Update = null_node_update, typename _Alloc = std::allocator<char>>
class __gnu_pbds::tree< Key, Mapped, Cmp_Fn, Tag, Node_Update, _Alloc >

A tree-based container.

Template Parameters
KeyKey type.
MappedMap type.
Cmp_FnComparison functor.
TagInstantiating data structure type, see container_tag.
Node_UpdateUpdates tree internal-nodes, restores invariants when invalidated. XXX See design::tree-based-containersnode invariants.
_AllocAllocator type.

Base tag choices are: ov_tree_tag, rb_tree_tag, splay_tree_tag.

Base is basic_branch.

Definition at line 635 of file assoc_container.hpp.


The documentation for this class was generated from the following file: