Constructs the value from rhs if it has one.

Synopsis

Declared in <beman/optional/optional.hpp>

template<class U>
constexpr
explicit(!std::is_convertible_v<U, T>)
optional(optional<U>&& rhs)
requires (detail::enable_from_other<T, U, U &&>);

Description

Converting move constructor.

Parameters

Name

Description

rhs

The object to move construct from

Created with MrDocs