[#BloombergLP-bslstl-BidirectionalNodePool-swapRetainAllocators]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/BidirectionalNodePool.adoc[BidirectionalNodePool]::swapRetainAllocators
:relfileprefix: ../../../
:mrdocs:

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

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
swapRetainAllocators(xref:BloombergLP/bslstl/BidirectionalNodePool.adoc[BidirectionalNodePool]& other);
----


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