[#BloombergLP-bslstl-swap-0ee] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::swap :relfileprefix: ../../ :mrdocs: Exchange the nodes of the specified `a` and `b` objects. == Synopsis Declared in `<bslstl_bidirectionalnodepool.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE, class ALLOCATOR> void swap( xref:BloombergLP/bslstl/BidirectionalNodePool.adoc[BidirectionalNodePool<VALUE, ALLOCATOR>]& a, xref:BloombergLP/bslstl/BidirectionalNodePool.adoc[BidirectionalNodePool<VALUE, ALLOCATOR>]& b); ---- == Description Efficiently exchange the nodes of the specified `a` object with those of the specified `b` object. This method provides the no‐throw exception‐safety guarantee. The behavior is undefined unless `a.allocator() == b.allocator()`. == Parameters [cols="1,4"] |=== | Name| Description | *a* | first node‐pool participating in the swap | *b* | second node‐pool participating in the swap |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#