BloombergLP::bslstl::Optional_Base::Optional_Base

Create an Optional_Base object.

Synopsis

Declared in <bslstl_optional.h>

template<class... t_ARGS>
explicit
Optional_Base(
    std::in_place_t inPlace,
    t_ARGS&&... args);

Description

Create an Optional_Base object having the value of the (template parameter) t_TYPE created in place using the specified args. Use the currently installed default allocator to supply memory.

Parameters

NameDescription
inPlacetag selecting in-place construction of the contained value
argsarguments forwarded to construct the contained value