Return a deep copy of this datum using the specified allocator.
Synopsis
Declared in <bdld_datum.h>
Datum
clone(AllocatorType const& allocator) const;
Description
Return a datum holding a "deep‐copy" of this object, using the specified allocator to supply memory. This method creates an independent deep‐copy of the data of this object, including any referenced data, with the exception of {User Defined Types}. For further information see {Deep Copying}.
Return Value
a deep copy of this datum using the specified allocator
Parameters
Name |
Description |
allocator |
memory allocator to use |
Created with MrDocs