BloombergLP::bslstl::BidirectionalNodePool::swapExchangeAllocators

Exchange this pool's nodes and allocator with those of other.

Synopsis

Declared in <bslstl_bidirectionalnodepool.h>

void
swapExchangeAllocators(BidirectionalNodePool& other);

Description

Efficiently exchange the nodes and the allocator of this object with those of the specified other object. This method provides the no-throw exception-safety guarantee.

Parameters

NameDescription
othernode-pool with which to exchange nodes and allocator