Create an Optional_Base object whose contained value is initialized from the specified il and args.
Declared in <bslstl_optional.h>
template<
class t_INIT_LIST_TYPE,
class... t_ARGS>
Optional_Base(
std::allocator_arg_t allocatorArg,
allocator_type allocator,
std::in_place_t inPlace,
std::initializer_list<t_INIT_LIST_TYPE> il,
t_ARGS&&... args);
Use the specified allocator to supply memory.
contained value value
| Name | Description |
|---|---|
| allocatorArg | tag selecting the allocator-extended constructor |
| allocator | allocator used to supply memory |
| inPlace | tag selecting in-place construction of the contained |
| il | initializer list forwarded to construct the contained value |
| args | arguments forwarded to construct the contained value |