BloombergLP::bslstl::SimplePool::quickSwapExchangeAllocators

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

Synopsis

Declared in <bslstl_simplepool.h>

void
quickSwapExchangeAllocators(SimplePool& other);

Description

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

Parameters

NameDescription
otherpool with which to exchange memory blocks and allocator