Create a tree by moving from original using the specified allocator.
Synopsis
Declared in <ball_categorymanager_radixtree.h>
CategoryManager_RadixTree(
bslmf::MovableRef<CategoryManager_RadixTree> original,
allocator_type const& allocator);
Description
Create a CategoryManager_RadixTree having the same value as the specified original object that uses the specified allocator to supply memory. 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
Name |
Description |
original |
tree to move from |
allocator |
allocator used to supply memory |
Created with MrDocs