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

Exchange this pool&apos;s nodes and allocator with those of `other`&period;

== Synopsis

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

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

== Description

Efficiently exchange the nodes and the allocator of this object with those of the specified `other` object&period; This method provides the no&hyphen;throw exception&hyphen;safety guarantee&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| node&hyphen;pool with which to exchange nodes and allocator
|===


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