Constructors

Synopses

Declared in <bdld_manageddatum.h>

Create a ManagedDatum object having the default (null) value.

Create a ManagedDatum object having the same value and allocator as the specified original object.

Create a ManagedDatum object having the default (null) value and using the specified allocator to supply memory.

explicit
ManagedDatum(allocator_type const& allocator);

Create a ManagedDatum object having the same value as the specified original object and the specified allocator.

Create a ManagedDatum object that assumes ownership of the specified datum.

explicit
ManagedDatum(
    Datum const& datum,
    allocator_type const& allocator = allocator_type());

Create a ManagedDatum object having the same value as the specified original object.

ManagedDatum(
    ManagedDatum const& original,
    allocator_type const& allocator = allocator_type());

Parameters

Name

Description

original

object providing the value

allocator

allocator used to supply memory

datum

Datum object whose ownership is assumed

Created with MrDocs