BloombergLP::bslstl::TreeNodePool::moveIntoNewNode

Allocate a node and move-construct its value from original.

Synopsis

Declared in <bslstl_treenodepool.h>

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

Description

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.

Return Value

address of the newly allocated node

Parameters

NameDescription
originalnode whose value is moved into the new node