BloombergLP::bslstl::TreeNodePool::emplaceIntoNewNode

Allocate a node and emplace-construct its value from args.

Synopsis

Declared in <bslstl_treenodepool.h>

template<class... Args>
bslalg::RbTreeNode*
emplaceIntoNewNode(Args&&... args);

Description

Allocate a node with a newly created value object of the (template parameter) type VALUE, constructed by forwarding allocator() and the specified (variable number of) arguments to the corresponding constructor of VALUE. Return the address of the newly allocated node. This operation requires that VALUE be constructible from arguments.

Return Value

address of the newly allocated node

Parameters

NameDescription
argsarguments forwarded to the constructor of VALUE