Allocate a node and copy‐construct its VALUE from original.
Synopsis
Declared in <bslstl_bidirectionalnodepool.h>
bslalg::BidirectionalLink*
cloneNode(bslalg::BidirectionalLink const& original);
Description
Allocate a node of the type BidirectionalNode<VALUE>, 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 node. Note that the next and prev attributes of the returned node will be uninitialized.
Return Value
address of the newly allocated and constructed node
Parameters
Name |
Description |
original |
node whose |
Created with MrDocs