Adopt all outstanding allocations from the specified pool.

Synopsis

Declared in <bslstl_simplepool.h>

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

Description

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

Parameters

Name

Description

pool

pool whose outstanding allocations are adopted

Created with MrDocs