wip balance identical for erase and insert now

This commit is contained in:
Hugo LAMY
2022-07-06 04:10:07 +02:00
parent 81b76ae040
commit 3280f4a754
4 changed files with 67 additions and 57 deletions

View File

@@ -175,9 +175,10 @@ private:
// BBST
enum {INSERT, ERASE};
void _balance(node<value_type>* n, bool action);
void _balance(node<value_type>* n);
short _compute_height(node<value_type>* n);
short _balance_factor(node<value_type>* n);
short _balance_f(node<value_type>* n);
node<value_type>* _rotate_left(node<value_type>* n);
node<value_type>* _rotate_right(node<value_type>* n);
};