emplace overloads
Declared in <bslstl_optional.h>
Create an object of StoredType in d_buffer using the specified allocator and args and return a reference providing modifiable access to the underlying t_TYPE object.
template<class... t_ARGS>
t_TYPE&
emplace(
bslma::Allocator* allocator,
t_ARGS&&... args);
» more...
Create an object of StoredType in d_buffer using the specified allocator, initializer_list, and args, and return a reference providing modifiable access to the underlying t_TYPE object.
template<
class t_INIT_LIST_TYPE,
class... t_ARGS>
t_TYPE&
emplace(
bslma::Allocator* allocator,
std::initializer_list<t_INIT_LIST_TYPE> initializer_list,
t_ARGS&&... args);
» more...