mrdocs::Optional::Optional

Construct from std::optional rvalue with convertible value.

Synopsis

Declared in <mrdocs/ADT/Optional.hpp>

template<typename U>
requires std::is_constructible_v<T, U> &&
        ConstructFromContainedValue<U>
constexpr
explicit(!std::is_convertible_v<U, T>)
Optional(std::optional<U>&& t) noexcept(std::is_nothrow_constructible_v<T, U>);

Parameters

NameDescription
tSource optional.