Creates an optional holding a copy of the given value.
Declared in <absl/types/optional.h>
template<typename T>
constexpr
decltype(std::make_optional(
std::declval<T>()))
make_optional(T&& value);
An optional holding the forwarded value.
| Name | Description |
|---|---|
| value | The value to store in the returned optional. |