Allocate a node and copy-construct its value from original.
Declared in <bslstl_treenodepool.h>
bslalg::RbTreeNode*
cloneNode(bslalg::RbTreeNode const& original);
Allocate a node object and copy-construct an object of the (template parameter) type VALUE having the same value as the specified original at the value attribute of the node. Return the address of the newly allocated node. The behavior is undefined unless original refers to a TreeNode<VALUE> object holding a valid (initialized) value.
address of the newly allocated node
| Name | Description |
|---|---|
| original | node whose value is copied into the new node |