Create an Optional_Base object, which contains the result of invocation of the specified invocable with the specified arg.
Synopsis
Declared in <bslstl_optional.h>
template<
class t_INVOCABLE,
class t_ARG>
Optional_Base(
Optional_InvokeConstructorTag tag,
t_INVOCABLE&& invocable,
t_ARG&& arg);
Parameters
Name |
Description |
tag |
tag selecting this constructor overload |
invocable |
callable invoked to produce the contained value |
arg |
argument forwarded to construct the contained value |
Created with MrDocs