Move assigns the value from rhs if it has one.
Declared in <beman/optional/optional.hpp>
constexpr
optional&
operator=(optional&& rhs)
requires std::is_move_constructible_v<T> && std::is_move_assignable_v<T> &&
std::is_trivially_move_constructible_v<T> && std::is_trivially_move_assignable_v<T> = default;
*this.
| Name | Description |
|---|---|
| rhs | The optional to move from. |