[#BloombergLP-bdlcc-SkipList-0b-removeAll-085]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/SkipList-0b.adoc[SkipList&lt;long long, EventData&gt;]::removeAll
:relfileprefix: ../../../
:mrdocs:

`removeAll` overloads

== Synopses

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

Remove all items from this list&period; Optionally specify `removed`, a vector to which to append handles to the removed nodes&period; The items appended to `removed` will be in ascending order by key value&period; Return the number of items that were removed from this list&period; Note that all references in `removed` must be released (i&period;e&period;, destroyed) before this skip list is destroyed&period; Note that if `removed` is not specified, all removed elements will be released by this method&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlcc/SkipList-0b/removeAll-03.adoc[removeAll]();
----

[.small]#xref:BloombergLP/bdlcc/SkipList-0b/removeAll-03.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, appending handles to `removed`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlcc/SkipList-0b/removeAll-088.adoc[removeAll](xref:bsl/vector-00d.adoc[bsl::vector&lt;PairHandle&gt;]* removed);
----

[.small]#xref:BloombergLP/bdlcc/SkipList-0b/removeAll-088.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, appending handles to `removed`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlcc/SkipList-0b/removeAll-0d.adoc[removeAll](std::pmr::vector&lt;PairHandle&gt;* removed);
----

[.small]#xref:BloombergLP/bdlcc/SkipList-0b/removeAll-0d.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, appending handles to `removed`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlcc/SkipList-0b/removeAll-0e.adoc[removeAll](std::vector&lt;PairHandle&gt;* removed);
----

[.small]#xref:BloombergLP/bdlcc/SkipList-0b/removeAll-0e.adoc[_» more&period;&period;&period;_]#


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