[#BloombergLP-bslstl-TreeNodePool-cloneNode]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/TreeNodePool.adoc[TreeNodePool]::cloneNode
:relfileprefix: ../../../
:mrdocs:

Allocate a node and copy&hyphen;construct its value from `original`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;treenodepool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslalg/RbTreeNode.adoc[bslalg::RbTreeNode]*
cloneNode(xref:BloombergLP/bslalg/RbTreeNode.adoc[bslalg::RbTreeNode] const& original);
----

== Description

Allocate a node object and copy&hyphen;construct an object of the (template parameter) type `VALUE` having the same value as the specified `original` at the `value` attribute of the node&period; Return the address of the newly allocated node&period; The behavior is undefined unless `original` refers to a `TreeNode&lt;VALUE&gt;` object holding a valid (initialized) value&period;

== Return Value

address of the newly allocated node

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| node whose value is copied into the new node
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
