[#BloombergLP-bslstl-BidirectionalNodePool-adopt] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/BidirectionalNodePool.adoc[BidirectionalNodePool]::adopt :relfileprefix: ../../../ :mrdocs: Adopt all outstanding allocations from the specified `pool`. == Synopsis Declared in `<bslstl_bidirectionalnodepool.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void adopt(xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<BidirectionalNodePool>] 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 [cols="1,4"] |=== | Name| Description | *pool* | node‐pool whose outstanding allocations are adopted |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#