Getter for whether the node is the root of the tree. The parent of the root of the tree is the leftmost node in the tree which is guaranteed to be a leaf.
| 500 | // root of the tree is the leftmost node in the tree which is guaranteed to |
| 501 | // be a leaf. |
| 502 | bool is_root() const { return parent()->leaf(); } |
| 503 | void make_root() { |
| 504 | assert(parent()->is_root()); |
| 505 | set_parent(parent()->parent()); |
no test coverage detected