|
|
|
|
|
|
|
|
std::enable_if_t<(std::is_nothrow_move_assignable_v<RR> |
|
|
std::enable_if_t<(std::is_nothrow_move_assignable_v<RR> |
|
|
|| std::is_nothrow_copy_assignable_v<RR>) |
|
|
|| std::is_nothrow_copy_assignable_v<RR>) |
|
|
&& (std::is_nothrow_move_assignable_v<DD> |
|
|
&& (std::is_nothrow_move_assignable_v<DD> |
|
|
|| std::is_nothrow_copy_assignable_v<DD>), int> = 0 |
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|| std::is_nothrow_copy_assignable_v<DD>), int> = 0> |
|
|
unique_resource& operator=(unique_resource&& other) noexcept(std::is_nothrow_assignable_v<R&, R> |
|
|
unique_resource& operator=(unique_resource&& other) noexcept(std::is_nothrow_assignable_v<R&, R> |
|
|
&& std::is_nothrow_assignable_v<D&, D>) |
|
|
&& std::is_nothrow_assignable_v<D&, D>) |
|
|
{ |
|
|
{ |