Assignment operator.
<beman/optional/optional.hpp>
constexpr
optional&
operator=(optional const& rhs) noexcept = default;
If rhs has a value, assigns it to the contained value. Otherwise resets the contained value in *this.
| Name | Description |
|---|---|
| rhs | The value to assign. |