Allocate a node and copy‐construct its value from original.
Synopsis
Declared in <bslstl_treenodepool.h>
bslalg::RbTreeNode*
cloneNode(bslalg::RbTreeNode const& original);
Description
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.
Return Value
address of the newly allocated node
Parameters
Name |
Description |
original |
node whose value is copied into the new node |
Created with MrDocs