Move assigns the value from rhs
if it has one.
Synopsis
Declared in <beman/optional/optional.hpp>
constexpr
optional<T>&
operator=(optional&& rhs) noexcept(std::is_nothrow_move_constructible_v<T>)
requires std::is_move_constructible_v<T> && std::is_move_assignable_v<T> &&
(!std::is_trivially_move_assignable_v<T>);
Return Value
Reference to the current object
Parameters
Name |
Description |
rhs |
The object to move assign from |
Created with MrDocs