In-place construct the contained value from an initializer list.
Declared in <mrdocs/ADT/Optional.hpp>
template<
typename U,
typename... Args>
requires std::is_constructible_v<T, std::initializer_list<U>&, Args...>
constexpr
explicit
Optional(
std::in_place_t,
std::initializer_list<U> il,
Args&&... args) noexcept(/* see-below */);
This function is potentially-throwing unless std::is_nothrow_constructible_v<T, std::initializer_list<U> &, Args...>.
| Name | Description |
|---|---|
| il | Initializer list forwarded to T's constructor. |
| args | Additional arguments forwarded to T's constructor. |