Return an optional object containing a value‐initialized t_TYPE object. If t_TYPE uses an allocator, the default allocator will be used for the optional object. This function can be called in constant expressions only if t_TYPE is not allocator‐aware.

Synopsis

Declared in <bslstl_optional.h>

template<class t_TYPE>
constexpr
bsl::optional<t_TYPE>
make_optional();

Created with MrDocs