Create an Optional_Base object whose contained value is initialized from the specified il and args.

Synopsis

Declared in <bslstl_optional.h>

template<
    class t_INIT_LIST_TYPE,
    class... t_ARGS>
constexpr
Optional_Base(
    std::in_place_t inPlace,
    std::initializer_list<t_INIT_LIST_TYPE> il,
    t_ARGS&&... args);

Parameters

Name

Description

inPlace

tag selecting in‐place construction of the contained value

il

initializer list forwarded to construct the contained value

args

arguments forwarded to construct the contained value

Created with MrDocs