<beman/optional/optional.hpp>
constexpr
optional(optional const& rhs) noexcept = default;
Constructs an empty optional if the rhs is empty, otherwise constructs the stored value from the rhs.
Name | Description |
---|---|
rhs | The object to copy construct from |