[#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. This method provides the no‐throw exception‐safety guarantee. The behavior is undefined unless `allocator() == other.allocator()`. == Synopsis Declared in `<bslstl_bidirectionalnodepool.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swapRetainAllocators(xref:BloombergLP/bslstl/BidirectionalNodePool.adoc[BidirectionalNodePool]& other); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#