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

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

== Synopsis

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

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

== Description

Allocate a node of the type `BidirectionalNode&lt;VALUE&gt;`, 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 node&period; Note that the `next` and `prev` attributes of the returned node will be uninitialized&period;

== Return Value

address of the newly allocated and constructed 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]#
