Destroy any contained value and construct a new one in place.
Synopses
Declared in <bslstl_optional.h>
Destroy any contained value and construct a new one in place.
template<class... t_ARGS>
t_TYPE&
emplace(t_ARGS&&... args);
Destroy any contained value and construct a new one in place.
template<
class t_INIT_LIST_TYPE,
class... t_ARGS>
t_TYPE&
emplace(
std::initializer_list<t_INIT_LIST_TYPE> il,
t_ARGS&&... args);
Return Value
reference providing modifiable access to the contained value
Parameters
Name |
Description |
args |
arguments forwarded to construct the contained value |
il |
initializer list forwarded to construct the contained value |
Created with MrDocs