BloombergLP::bslstl::TreeNodePool::adopt

Adopt all outstanding allocations from the specified pool.

Synopsis

Declared in <bslstl_treenodepool.h>

void
adopt(bslmf::MovableRef<TreeNodePool> pool);

Description

Adopt all outstanding memory allocations associated with the specified node pool. The behavior is undefined unless this pool uses the same allocator as that associated with pool. The behavior is also undefined unless this pool is in the default-constructed state.

Parameters

NameDescription
poolnode-pool whose outstanding allocations are adopted