|
template<typename Key , typename Tree , typename Compare > |
Tree * | splay (const Key &k, Tree *t, const Compare &cmp) |
|
template<typename Tree , typename Compare > |
bool | splay_check (const Tree *t, const Tree *&out_tmin, const Tree *&out_tmax, const Compare &cmp) |
| check the tree order, recursively calculate min and max elements More...
|
|
template<typename Tree , typename Compare > |
bool | splay_check (const Tree *t, const Compare &cmp) |
| check the tree order More...
|
|
template<typename Key , typename Tree , typename Compare > |
Tree * | splay_erase (const Key &k, Tree *&t, const Compare &cmp) |
|
template<typename Tree , typename Compare > |
Tree * | splay_insert (Tree *nn, Tree *t, const Compare &cmp) |
|
template<typename Tree , typename Functor > |
void | splay_traverse_postorder (const Functor &f, Tree *t) |
| traverse the tree in postorder (left, right, node) More...
|
|
template<typename Tree , typename Functor > |
void | splay_traverse_preorder (const Functor &f, const Tree *t) |
| traverse the tree in preorder (left, node, right) More...
|
|