Create an optional object having the value of the (template parameter) t_TYPE created in place using the specified args.
Synopsis
Declared in <bslstl_optional.h>
template<class... t_ARGS>
explicit
optional(
std::allocator_arg_t allocatorArg,
AllocType allocator,
std::in_place_t inPlace,
t_ARGS&&... args);
Description
Create an optional object having the value of the (template parameter) t_TYPE created in place using the specified args. Use the specified allocator to supply memory.
Parameters
Name |
Description |
allocatorArg |
tag selecting the allocator‐extended constructor |
allocator |
allocator used to supply memory |
inPlace |
tag selecting in‐place construction of the contained value |
args |
arguments forwarded to construct the contained value |
Created with MrDocs