[#BloombergLP-bslstl-TreeNodePool-swap] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/TreeNodePool.adoc[TreeNodePool]::swap :relfileprefix: ../../../ :mrdocs: Exchange this pool's nodes with those of `other`. == Synopsis Declared in `<bslstl_treenodepool.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(xref:BloombergLP/bslstl/TreeNodePool.adoc[TreeNodePool]& other); ---- == Description 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()`. == Parameters [cols="1,4"] |=== | Name| Description | *other* | pool with which to exchange nodes |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#