Creates an optional<T> from an initializer list and extra arguments.
Declared in <absl/types/optional.h>
template<
typename T,
typename U,
typename... Args>
constexpr
decltype(std::make_optional<T>(
std::declval<std::initializer_list<U>>(),
std::declval<Args>()...))
make_optional(
std::initializer_list<U> il,
Args&&... args);
An optional holding the constructed value.
| Name | Description |
|---|---|
| il | Initializer list forwarded to the constructor of T. |
| args | Additional arguments forwarded to the constructor of T. |