xo-ordinaltree: revert refactor attempt
This commit is contained in:
parent
3a840546fe
commit
1b8526df08
1 changed files with 4 additions and 0 deletions
|
|
@ -779,6 +779,7 @@ namespace xo {
|
|||
* - f=false for existing node (k already in tree before this call)
|
||||
* - n=node containing key k
|
||||
*/
|
||||
template <typename NodeAllocator>
|
||||
static std::pair<bool, RbNode *>
|
||||
insert_aux(NodeAllocator & alloc,
|
||||
value_type const & kv_pair,
|
||||
|
|
@ -884,6 +885,7 @@ namespace xo {
|
|||
* - N has no child nodes
|
||||
* - N->parent() != nullptr
|
||||
*/
|
||||
template <typename NodeAllocator>
|
||||
static void remove_black_leaf(NodeAllocator & alloc,
|
||||
RbNode *N,
|
||||
Reduce const & reduce_fn,
|
||||
|
|
@ -1340,6 +1342,7 @@ namespace xo {
|
|||
*
|
||||
* return true if a node was removed; false otherwise.
|
||||
*/
|
||||
template <typename NodeAllocator>
|
||||
static bool erase_aux(NodeAllocator & alloc,
|
||||
Key const & k,
|
||||
Reduce const & reduce_fn,
|
||||
|
|
@ -1553,6 +1556,7 @@ namespace xo {
|
|||
return true;
|
||||
} /*erase_aux*/
|
||||
|
||||
template <typename NodeAllocator>
|
||||
static void erase_1child_aux(NodeAllocator & alloc,
|
||||
RbNode * N,
|
||||
Reduce const & reduce_fn,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue