[#BloombergLP-bdlcc-SkipList_NodeCreationHelper]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::SkipList&lowbar;NodeCreationHelper
:relfileprefix: ../../
:mrdocs:

This component&hyphen;private structure is a scoped guard that initializes new nodes and releases them in case of exception&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;skiplist&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class KEY,
    class DATA&gt;
class SkipList&lowbar;NodeCreationHelper;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlcc/SkipList_NodeCreationHelper/2constructor.adoc[`SkipList&lowbar;NodeCreationHelper`]         [.small]#[constructor]#
| Create a scoped guard for exception&hyphen;safe node initialization&period;
| xref:BloombergLP/bdlcc/SkipList_NodeCreationHelper/2destructor.adoc[`&#126;SkipList&lowbar;NodeCreationHelper`] [.small]#[destructor]#
| Destroy this scoped guard&period; If the guard currently manages a node, destroy its data as necessary and return it to the pool&period;
| xref:BloombergLP/bdlcc/SkipList_NodeCreationHelper/construct.adoc[`construct`] 
| Copy&hyphen;construct `key` and `data` into the managed node&period;
|===



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