BloombergLP::bslstl::TreeNodePool::swap

Exchange this pool's nodes with those of other.

Synopsis

Declared in <bslstl_treenodepool.h>

void
swap(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

NameDescription
otherpool with which to exchange nodes