BloombergLP::bdlb::NullableAllocatedValue::emplace

Destroy any contained value and construct a new one in place.

Synopses

Declared in <bdlb_nullableallocatedvalue.h>

Destroy any contained value and construct a new one in place.

template<class... ARGS>
TYPE&
emplace(ARGS&&... args);
» more...

Destroy any contained value and construct a new one in place.

template<
    class INIT_LIST_TYPE,
    class... ARGS>
TYPE&
emplace(
    std::initializer_list<INIT_LIST_TYPE> il,
    ARGS&&... args);
» more...

Return Value

modifiable reference to the created value

Parameters

NameDescription
argsarguments forwarded to construct the contained value
ilinitializer list forwarded to construct the contained value