Copy constructs the value from rhs if it has one.
<beman/optional/optional.hpp>
constexpr
optional(optional const& rhs)
requires std::is_copy_constructible_v<T> && (!std::is_trivially_copy_constructible_v<T>);
| Name | Description |
|---|---|
| rhs | The object to copy construct from |