[#BloombergLP-bslstl-swap-0ee]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::swap
:relfileprefix: ../../
:mrdocs:

Efficiently exchange the nodes of the specified `a` object with those of the specified `b` object&period; This method provides the no&hyphen;throw exception&hyphen;safety guarantee&period; The behavior is undefined unless `a&period;allocator() &equals;&equals; b&period;allocator()`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class VALUE,
    class ALLOCATOR&gt;
void
swap(
    xref:BloombergLP/bslstl/BidirectionalNodePool.adoc[BidirectionalNodePool&lt;VALUE, ALLOCATOR&gt;]& a,
    xref:BloombergLP/bslstl/BidirectionalNodePool.adoc[BidirectionalNodePool&lt;VALUE, ALLOCATOR&gt;]& b);
----


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