BloombergLP::bslstl::TreeNodePool::moveIntoNewNode

Allocate a node of the type TreeNode<VALUE>, and move-construct an object of the (template parameter) type VALUE with the (explicitly moved) value indicated by the value attribute of the specified original node. Return the address of the newly allocated node. The object referred to by the value attribute of original is left in a valid but unspecified state. The behavior is undefined unless original refers to a TreeNode<VALUE> object holding a valid (initialized) value.

Synopsis

Declared in <bslstl_treenodepool.h>

bslalg::RbTreeNode*
moveIntoNewNode(bslalg::RbTreeNode* original);