Create a ManagedDatum object that assumes ownership of the specified datum.
Declared in <bdld_manageddatum.h>
explicit
ManagedDatum(
Datum const& datum,
allocator_type const& allocator = allocator_type());
Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used. The behavior is undefined unless datum was allocated using the indicated allocator and is not subsequently destroyed externally using Datum::destroy.
| Name | Description |
|---|---|
| datum | Datum object whose ownership is assumed |
| allocator | allocator used to supply memory |