[#BloombergLP-bdlcc-SkipList-0a-addAtLevelRaw]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/SkipList-0a.adoc[SkipList]::addAtLevelRaw
:relfileprefix: ../../../
:mrdocs:

Add a key&sol;data pair at a specified skip&hyphen;list level&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
addAtLevelRaw(
    xref:BloombergLP/bdlcc/SkipList-0a/Pair.adoc[Pair]** result,
    int level,
    KEY const& key,
    DATA const& data,
    bool* newFrontFlag = 0);
----

== Description

Add the specified `key` &sol; `data` pair to this list at the specified `level`, and load into the specified `result` a reference to the pair in the list&period; The `result` reference must be released (using `releaseReferenceRaw`) when it is no longer needed&period; Load into the the optionally specified `newFrontFlag` a `true` value if the pair is at the front of the list, and a `false` value otherwise&period; The behavior is undefined if `level` is greater than the implementation&hyphen;defined maximum level of this class, or if `level` is negative&period; Note that this method is provided for testing purposes&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *result*
| location for a raw reference to the inserted pair
| *level*
| skip&hyphen;list level at which to insert
| *key*
| key of the pair
| *data*
| data associated with `key`
| *newFrontFlag*
| if non&hyphen;null, set to whether the pair is at the front
|===


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