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

Allocate a node and emplace&hyphen;construct its value from `args`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class&period;&period;&period; Args&gt;
xref:BloombergLP/bslalg/RbTreeNode.adoc[bslalg::RbTreeNode]*
emplaceIntoNewNode(Args&&&period;&period;&period; args);
----

== Description

Allocate a node with a newly created value object of the (template parameter) type `VALUE`, constructed by forwarding `allocator()` and the specified (variable number of) `arguments` to the corresponding constructor of `VALUE`&period; Return the address of the newly allocated node&period; This operation requires that `VALUE` be constructible from `arguments`&period;

== Return Value

address of the newly allocated node

== Parameters

[cols="1,4"]
|===
| Name| Description
| *args*
| arguments forwarded to the constructor of `VALUE`
|===


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