Destroy any contained value and construct a new one in place.
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...
modifiable reference to the created value
| Name | Description |
|---|---|
| args | arguments forwarded to construct the contained value |
| il | initializer list forwarded to construct the contained value |