Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Gen_Rb_Tree< NodeType, Key, Compare > Class Template Reference

Red-black binary search tree implementation (bottom-up). More...

#include <tpl_rb_tree.H>

Inheritance diagram for Aleph::Gen_Rb_Tree< NodeType, Key, Compare >:
[legend]
Collaboration diagram for Aleph::Gen_Rb_Tree< NodeType, Key, Compare >:
[legend]

Classes

struct  Iterator
 Iterator over tree nodes in sorted order. More...
 

Public Types

using Node = NodeType< Key >
 
using key_type = Key
 
using compare_type = Compare
 

Public Member Functions

Compare & key_comp () noexcept
 Returns a reference to the comparison criteria.
 
const Compare & key_comp () const noexcept
 
Compare & get_compare () noexcept
 See key_comp().
 
const Compare & get_compare () const noexcept
 
 Gen_Rb_Tree () noexcept(std::is_nothrow_default_constructible_v< Node > and std::is_nothrow_default_constructible_v< Compare > and std::is_nothrow_constructible_v< Compare, Compare & >)
 Builds an empty tree with a comparison criteria built by default.
 
 Gen_Rb_Tree (Compare __cmp) noexcept(std::is_nothrow_default_constructible_v< Node > and std::is_nothrow_constructible_v< Compare, Compare & >)
 Builds an empty tree with the comparison criteria __cmp.
 
void swap (Gen_Rb_Tree &tree) noexcept(std::is_nothrow_swappable_v< Compare >)
 Swaps all elements with another tree in constant time.
 
 Gen_Rb_Tree (Gen_Rb_Tree &&tree) noexcept(bin_node_detail::nothrow_header_from_v< Node > and bin_node_detail::nothrow_compare_taken_v< Compare >)
 Takes the nodes and the comparison criteria of tree, which is left empty and can take nodes again.
 
Gen_Rb_Tree & operator= (Gen_Rb_Tree &&tree) noexcept(std::is_nothrow_move_assignable_v< Compare >)
 Takes the nodes and the comparison criteria of tree, which is left empty.
 
virtual ~Gen_Rb_Tree ()=default
 Destructor.
 
Node * search (const Key &key) const noexcept(nothrow_compare_v< Compare, Key >)
 Search for a key in the tree.
 
Node *& getRoot () noexcept
 Get reference to root pointer.
 
Node * getRoot () const noexcept
 Get const root pointer.
 
bool is_empty () const noexcept
 Returns true if the tree is empty.
 
size_t size () const noexcept
 Returns the number of nodes in the tree (O(1))
 
void reset () noexcept
 Reset tree to empty state (does not free nodes)
 
Node * insert (Node *p) noexcept(nothrow_compare_v< Compare, Key >)
 Insert a node into the tree.
 
Node * search_or_insert (Node *p) noexcept(nothrow_compare_v< Compare, Key >)
 Search for key or insert if not found.
 
Node * insert_dup (Node *p) noexcept(nothrow_compare_v< Compare, Key >)
 Insert a node allowing duplicates.
 
bool verify () const
 Verify that tree satisfies red-black properties and that its keys are in order.
 
Node * remove (const Key &key) noexcept(nothrow_compare_v< Compare, Key >)
 Remove the node containing key.
 

Private Types

using Path = InlineStack< Node *, Node::MaxHeight+1 >
 

Private Member Functions

Node * search_and_stack_rb (const Key &key, signed char &cmp_result, Path &path) noexcept(nothrow_compare_v< Compare, Key >)
 Search for key and stack ancestors (optimistic duplicate detection).
 
Node * search_dup_and_stack_rb (const Key &key, signed char &cmp_result, Path &path) noexcept(nothrow_compare_v< Compare, Key >)
 Search for insertion point (allows duplicates) and stack ancestors.
 
void fix_red_condition (Node *p, Path &path) noexcept
 Fix red-red violation after insertion.
 
void find_succ_and_swap (Node *p, Node *&pp, Path &path) noexcept
 Find successor and swap with node being deleted.
 
void fix_black_condition (Node *p, Path &path) noexcept
 Fix black-height violation after deletion.
 
void init () noexcept
 Initialize tree state.
 

Private Attributes

Node head_node
 Sentinel header node.
 
Node * head
 Pointer to sentinel.
 
Node *& root
 Reference to root (right child of head)
 
Compare cmp
 Comparison functor.
 
size_t num_nodes
 Number of nodes in tree.
 

Static Private Attributes

static constexpr signed char CmpLess = -1
 
static constexpr signed char CmpEqual = 0
 
static constexpr signed char CmpGreater = 1
 

Detailed Description

template<template< typename > class NodeType, typename Key, class Compare>
requires StrictWeakOrder<Compare, Key>
class Aleph::Gen_Rb_Tree< NodeType, Key, Compare >

Red-black binary search tree implementation (bottom-up).

A red-black tree is a self-balancing binary search tree where each node has a color (red or black). The tree maintains balance through four invariants that guarantee the height is at most 2*logâ‚‚(n+1), ensuring O(log n) worst-case time for all operations.

Red-Black Tree Properties:
  1. Every node is either red or black
  2. All leaves (null nodes) are black
  3. Red nodes have only black children
  4. Every path from root to leaf has the same number of black nodes

These properties ensure the tree remains approximately balanced, with the longest path at most twice the length of the shortest path.

The usual definition adds that the root is black. This tree does not force it, and neither do the other red-black trees of the library: the root can be red, as the only node of a tree is. A red root has black children, so the bound on the height is the same, and verify() accepts it.

This is the bottom-up implementation that uses a stack to track ancestors during descent and repairs violations by ascending back to the root.

Template Parameters
NodeTypeNode template (typically RbNode or RbNodeVtl).
KeyThe type of keys stored in the tree.
CompareComparison functor for ordering keys.
Complexity:
  • Search: O(log n) worst case
  • Insert: O(log n) worst case, at most 2 rotations
  • Delete: O(log n) worst case, at most 3 rotations
  • Size: O(1)
  • Space: O(n) + O(log n) for ancestor stack during operations
Example:
tree.insert(new Rb_Tree<int>::Node(42));
tree.insert(new Rb_Tree<int>::Node(17));
tree.insert(new Rb_Tree<int>::Node(99));
auto node = tree.search(42);
if (node != nullptr)
std::cout << "Found: " << node->get_key() << '\n';
tree.remove(42);
Node * search(const Key &key) const noexcept(nothrow_compare_v< Compare, Key >)
Search for a key in the tree.
Node * remove(const Key &key) noexcept(nothrow_compare_v< Compare, Key >)
Remove the node containing key.
NodeType< Key > Node
Node * insert(Node *p) noexcept(nothrow_compare_v< Compare, Key >)
Insert a node into the tree.
Red-black tree with nodes without virtual destructor.
Note
This is a low-level implementation managing raw nodes. For automatic memory management, use DynSetRbTree.
See also
GenTdRbTree Top-down (single-pass) alternative implementation.
DynSetRbTree High-level wrapper with automatic memory management.
Avl_Tree Alternative balanced tree (stricter balance, more rotations).

Definition at line 126 of file tpl_rb_tree.H.

Member Typedef Documentation

◆ compare_type

template<template< typename > class NodeType, typename Key , class Compare >
using Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::compare_type = Compare

Definition at line 131 of file tpl_rb_tree.H.

◆ key_type

template<template< typename > class NodeType, typename Key , class Compare >
using Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::key_type = Key

Definition at line 130 of file tpl_rb_tree.H.

◆ Node

template<template< typename > class NodeType, typename Key , class Compare >
using Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::Node = NodeType<Key>

Definition at line 129 of file tpl_rb_tree.H.

◆ Path

template<template< typename > class NodeType, typename Key , class Compare >
using Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::Path = InlineStack<Node *, Node::MaxHeight + 1>
private

Definition at line 147 of file tpl_rb_tree.H.

Constructor & Destructor Documentation

◆ Gen_Rb_Tree() [1/3]

template<template< typename > class NodeType, typename Key , class Compare >
Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::Gen_Rb_Tree ( )
inlinenoexcept

Builds an empty tree with a comparison criteria built by default.

It is a constructor apart from the one that takes the comparison, and not a default argument of that one: GCC and Clang do not count a default argument in the noexcept of the implicit default constructor of a tree that inherits these, and what the construction of the comparison threw would end the program there.

Exceptions
whatthe default construction of the key of a header node or of the comparison, or the copy of the comparison, throws; nothing when they are noexcept.

Definition at line 454 of file tpl_rb_tree.H.

◆ Gen_Rb_Tree() [2/3]

template<template< typename > class NodeType, typename Key , class Compare >
Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::Gen_Rb_Tree ( Compare  __cmp)
inlinenoexcept

Builds an empty tree with the comparison criteria __cmp.

Parameters
[in]__cmpthe comparison criteria, which the tree copies.
Exceptions
whatthe default construction of the key of a header node or the copy of __cmp throws; nothing when both are noexcept. The copy is from a Compare that is not const, which a comparison may have apart from the one from a const one.

Definition at line 471 of file tpl_rb_tree.H.

◆ Gen_Rb_Tree() [3/3]

template<template< typename > class NodeType, typename Key , class Compare >
Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::Gen_Rb_Tree ( Gen_Rb_Tree< NodeType, Key, Compare > &&  tree)
inlinenoexcept

Takes the nodes and the comparison criteria of tree, which is left empty and can take nodes again.

It builds no key, if it can: the key of the header node is built by default when that cannot throw; else it is that of the header node of tree, moved, when the move of a key cannot throw (see bin_node_detail::header_from()).

Parameters
[in,out]treethe tree to move from. It keeps its comparison criteria, which are copied: from a const one, or from one that is not const, if they have only that copy. Criteria that cannot be copied are moved, and tree keeps criteria that were moved from.
Exceptions
whatthe copy of the comparison criteria throws, or their move if they cannot be copied; and what the default construction of the key of the header node throws, with a key whose move may throw too. Then tree keeps its nodes. Nothing when they are noexcept.

Definition at line 511 of file tpl_rb_tree.H.

References Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::root.

◆ ~Gen_Rb_Tree()

template<template< typename > class NodeType, typename Key , class Compare >
virtual Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::~Gen_Rb_Tree ( )
virtualdefault

Destructor.

Member Function Documentation

◆ find_succ_and_swap()

template<template< typename > class NodeType, typename Key , class Compare >
void Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::find_succ_and_swap ( Node *  p,
Node *&  pp,
Path &  path 
)
inlineprivatenoexcept

Find successor and swap with node being deleted.

Definition at line 285 of file tpl_rb_tree.H.

References COLOR, LLINK, and RLINK.

Referenced by Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::remove().

◆ fix_black_condition()

template<template< typename > class NodeType, typename Key , class Compare >
void Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::fix_black_condition ( Node *  p,
Path &  path 
)
inlineprivatenoexcept

◆ fix_red_condition()

template<template< typename > class NodeType, typename Key , class Compare >
void Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::fix_red_condition ( Node *  p,
Path &  path 
)
inlineprivatenoexcept

◆ get_compare() [1/2]

template<template< typename > class NodeType, typename Key , class Compare >
const Compare & Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::get_compare ( ) const
inlinenoexcept

Definition at line 439 of file tpl_rb_tree.H.

References Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::cmp.

◆ get_compare() [2/2]

template<template< typename > class NodeType, typename Key , class Compare >
Compare & Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::get_compare ( )
inlinenoexcept

See key_comp().

Definition at line 438 of file tpl_rb_tree.H.

References Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::cmp.

◆ getRoot() [1/2]

template<template< typename > class NodeType, typename Key , class Compare >
Node * Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::getRoot ( ) const
inlinenoexcept

Get const root pointer.

Definition at line 576 of file tpl_rb_tree.H.

References Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::root.

◆ getRoot() [2/2]

template<template< typename > class NodeType, typename Key , class Compare >
Node *& Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::getRoot ( )
inlinenoexcept

Get reference to root pointer.

Definition at line 573 of file tpl_rb_tree.H.

References Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::root.

Referenced by main(), and write_rb().

◆ init()

template<template< typename > class NodeType, typename Key , class Compare >
void Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::init ( )
inlineprivatenoexcept

Initialize tree state.

Definition at line 427 of file tpl_rb_tree.H.

References Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::num_nodes.

◆ insert()

template<template< typename > class NodeType, typename Key , class Compare >
Node * Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::insert ( Node *  p)
inlinenoexcept

Insert a node into the tree.

Parameters
pNode to insert (must be red with null children).
Returns
Pointer to inserted node, or nullptr if key already exists.
Exceptions
anythingthat the comparison throws; the tree changes only after the last comparison, so it is left as it was, without p.
Note
It is noexcept only if the comparison cannot throw, so that what it throws reaches the caller.

Definition at line 600 of file tpl_rb_tree.H.

References Aleph::and, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::CmpEqual, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::CmpGreater, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::CmpLess, COLOR, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::fix_red_condition(), KEY, LLINK, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::num_nodes, RED, RLINK, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::root, and Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::search_and_stack_rb().

Referenced by RbTreeTest::insert_values(), main(), TEST(), and write_rb().

◆ insert_dup()

template<template< typename > class NodeType, typename Key , class Compare >
Node * Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::insert_dup ( Node *  p)
inlinenoexcept

Insert a node allowing duplicates.

Parameters
pNode to insert.
Returns
Pointer to inserted node (always succeeds).
Exceptions
anythingthat the comparison throws; the tree changes only after the last comparison, so it is left as it was, without p.
Note
It is noexcept only if the comparison cannot throw, so that what it throws reaches the caller.

Definition at line 672 of file tpl_rb_tree.H.

References Aleph::and, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::CmpEqual, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::CmpLess, COLOR, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::fix_red_condition(), KEY, LLINK, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::num_nodes, RED, RLINK, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::root, and Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::search_dup_and_stack_rb().

◆ is_empty()

template<template< typename > class NodeType, typename Key , class Compare >
bool Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::is_empty ( ) const
inlinenoexcept

Returns true if the tree is empty.

Definition at line 579 of file tpl_rb_tree.H.

References Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::root.

Referenced by TEST().

◆ key_comp() [1/2]

template<template< typename > class NodeType, typename Key , class Compare >
const Compare & Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::key_comp ( ) const
inlinenoexcept

Definition at line 435 of file tpl_rb_tree.H.

References Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::cmp.

◆ key_comp() [2/2]

template<template< typename > class NodeType, typename Key , class Compare >
Compare & Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::key_comp ( )
inlinenoexcept

Returns a reference to the comparison criteria.

Definition at line 434 of file tpl_rb_tree.H.

References Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::cmp.

◆ operator=()

template<template< typename > class NodeType, typename Key , class Compare >
Gen_Rb_Tree & Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::operator= ( Gen_Rb_Tree< NodeType, Key, Compare > &&  tree)
inlinenoexcept

Takes the nodes and the comparison criteria of tree, which is left empty.

Parameters
[in,out]treethe tree to move from.
Returns
*this.
Exceptions
whatthe move assignment of the comparison criteria throws, which goes first: then the nodes stay where they were.

Definition at line 531 of file tpl_rb_tree.H.

References Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::cmp, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::num_nodes, and Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::root.

◆ remove()

template<template< typename > class NodeType, typename Key , class Compare >
Node * Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::remove ( const Key &  key)
inlinenoexcept

Remove the node containing key.

Parameters
keyKey to remove.
Returns
Pointer to removed node, or nullptr if not found.
Exceptions
anythingthat the comparison throws; the tree changes only after the last comparison, so it is left as it was.
Note
It is noexcept only if the comparison cannot throw, so that what it throws reaches the caller.

Definition at line 710 of file tpl_rb_tree.H.

References BLACK, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::CmpEqual, COLOR, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::find_succ_and_swap(), Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::fix_black_condition(), LLINK, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::num_nodes, RLINK, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::root, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::search_and_stack_rb(), and Aleph::InlineStack< T, N >::top().

Referenced by TEST().

◆ reset()

template<template< typename > class NodeType, typename Key , class Compare >
void Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::reset ( )
inlinenoexcept

Reset tree to empty state (does not free nodes)

Definition at line 585 of file tpl_rb_tree.H.

References Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::num_nodes, and Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::root.

◆ search()

template<template< typename > class NodeType, typename Key , class Compare >
Node * Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::search ( const Key &  key) const
inlinenoexcept

Search for a key in the tree.

Parameters
keyKey to search for.
Returns
Pointer to node containing key, or nullptr if not found.
Exceptions
anythingthat the comparison throws; the search does not modify the tree, so it is left as it was.
Note
It is noexcept only if the comparison cannot throw, so that what it throws reaches the caller.

Definition at line 557 of file tpl_rb_tree.H.

References Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::cmp, KEY, LLINK, RLINK, and Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::root.

Referenced by main(), TEST(), and write_rb().

◆ search_and_stack_rb()

template<template< typename > class NodeType, typename Key , class Compare >
Node * Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::search_and_stack_rb ( const Key &  key,
signed char &  cmp_result,
Path &  path 
)
inlineprivatenoexcept

◆ search_dup_and_stack_rb()

template<template< typename > class NodeType, typename Key , class Compare >
Node * Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::search_dup_and_stack_rb ( const Key &  key,
signed char &  cmp_result,
Path &  path 
)
inlineprivatenoexcept

◆ search_or_insert()

template<template< typename > class NodeType, typename Key , class Compare >
Node * Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::search_or_insert ( Node *  p)
inlinenoexcept

Search for key or insert if not found.

Parameters
pNode to search or insert.
Returns
Pointer to p if inserted, or pointer to existing node with same key.
Exceptions
anythingthat the comparison throws; the tree changes only after the last comparison, so it is left as it was, without p.
Note
It is noexcept only if the comparison cannot throw, so that what it throws reaches the caller.

Definition at line 636 of file tpl_rb_tree.H.

References Aleph::and, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::CmpEqual, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::CmpGreater, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::CmpLess, COLOR, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::fix_red_condition(), KEY, LLINK, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::num_nodes, RED, RLINK, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::root, and Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::search_and_stack_rb().

◆ size()

template<template< typename > class NodeType, typename Key , class Compare >
size_t Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::size ( ) const
inlinenoexcept

Returns the number of nodes in the tree (O(1))

Definition at line 582 of file tpl_rb_tree.H.

References Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::num_nodes.

Referenced by TEST().

◆ swap()

template<template< typename > class NodeType, typename Key , class Compare >
void Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::swap ( Gen_Rb_Tree< NodeType, Key, Compare > &  tree)
inlinenoexcept

Swaps all elements with another tree in constant time.

Parameters
[in]treethe red-black tree to swap with
Exceptions
whatthe swap of the comparison criteria throws, which goes first: then the nodes stay where they were.

Definition at line 485 of file tpl_rb_tree.H.

References Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::cmp, Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::num_nodes, and Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::root.

◆ verify()

template<template< typename > class NodeType, typename Key , class Compare >
bool Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::verify ( ) const
inline

Verify that tree satisfies red-black properties and that its keys are in order.

It throws what the comparator throws.

Definition at line 699 of file tpl_rb_tree.H.

References Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::cmp, is_red_black_bst(), and Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::root.

Referenced by TEST().

Member Data Documentation

◆ cmp

◆ CmpEqual

◆ CmpGreater

template<template< typename > class NodeType, typename Key , class Compare >
constexpr signed char Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::CmpGreater = 1
staticconstexprprivate

◆ CmpLess

◆ head

template<template< typename > class NodeType, typename Key , class Compare >
Node* Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::head
private

◆ head_node

template<template< typename > class NodeType, typename Key , class Compare >
Node Aleph::Gen_Rb_Tree< NodeType, Key, Compare >::head_node
private

Sentinel header node.

Definition at line 134 of file tpl_rb_tree.H.

◆ num_nodes

◆ root


The documentation for this class was generated from the following file: