Constructs the value from rhs
if it has one.
Synopsis
Declared in <beman/optional/optional.hpp>
template<class U>
constexpr
optional(optional<U> const& rhs)
requires (detail::enable_from_other<T, U, const U&>);
Description
Converting copy constructor.
Template Parameters
Name |
Description |
U |
Created with MrDocs