Create a ManagedDatum object having the same value as the specified original object.
Declared in <bdld_manageddatum.h>
ManagedDatum(
ManagedDatum const& original,
allocator_type const& allocator = allocator_type());
Optionally specify an allocator (e.g., the address of a bslma::Allocator object) used to supply memory; otherwise, the default allocator is used. This operation performs a clone of the underlying Datum, see {Value Semantics} for more detail.
| Name | Description |
|---|---|
| original | object providing the value |
| allocator | allocator used to supply memory |