Copy assigns the value from rhs
if it has one.
Synopsis
Declared in <beman/optional/optional.hpp>
constexpr
optional&
operator=(optional const& other)
requires std::is_copy_constructible_v<T> && std::is_copy_assignable_v<T> &&
std::is_trivially_copy_constructible_v<T> && std::is_trivially_copy_assignable_v<T> = default;
Return Value
optional&
Parameters
Name |
Description |
other |
The object to copy assign from |
Created with MrDocs