Constructors

Synopses

Declared in <bslalg_rbtreeanchor.h>

Create a RbTree object having the (default) attribute values: ` rootNode() == 0 firstNode() == sentinel() numNodes() == 0 `

Create a RbTreeAnchor object having the specified rootNode, firstNode, and numNodes attribute values.

RbTreeAnchor(
    RbTreeNode* rootNode,
    RbTreeNode* firstNode,
    int numNodes);

Parameters

Name

Description

rootNode

address of the root node

firstNode

address of the first (left‐most) node

numNodes

number of nodes in the tree

Created with MrDocs