Template Class SplayTree
Defined in File SplayTree.h
Nested Relationships
Nested Types
Class Documentation
-
template<std::totally_ordered K, class V>
class SplayTree a DICTIONARY on a splay tree
Public Types
-
using size_type = std::size_t
-
using difference_type = std::ptrdiff_t
-
using reference = value_type
-
using const_reference = value_type
-
using const_iterator = PathIterator<SplayTree, Shape>
-
using iterator = const_iterator
Public Functions
-
SplayTree(void) = default
-
~SplayTree()
-
std::optional<V> lookup(const K &k)
the value of k, or nothing; k, or the last node on its path, goes to the root
-
std::size_t size(void) const
-
inline const_iterator begin(void) const
-
inline const_iterator end(void) const
-
inline const_iterator cbegin(void) const
-
inline const_iterator cend(void) const
-
struct Shape
the shape of the tree, for PathIterator
-
using size_type = std::size_t