BloombergLP::ball::CategoryManager_RadixTree_Node::CategoryManager_RadixTree_Node

Create a node by moving from original using the specified allocator.

Synopsis

Declared in <ball_categorymanager_radixtree.h>

CategoryManager_RadixTree_Node(
    bslmf::MovableRef<CategoryManager_RadixTree_Node> original,
    allocator_type const& allocator);

Description

Create a CategoryManager_RadixTree_Node object having the same value as the specified original object, and use the specified allocator to supply memory for this new object. The contents of original are moved (in amortized constant time) to the newly-created object if allocator == original.get_allocator(), and are move-inserted (in linear time) using allocator otherwise. original is left in a valid but unspecified state.

Parameters

NameDescription
originalnode to move from
allocatorallocator used to supply memory