C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Relocation in C++

From: Magnus Fromreide <magfr_at_[hidden]>
Date: Fri, 3 Jun 2022 19:28:12 +0200
Hello.

Having read this thread there are some things I am confused about:


How does destroy+relocate assignment work when the assignment is a
self-assignment?


If a relocate constructor is spelled T(T) then how does it work when more
than one type is involved, is

  A(B)

a relocating constructor for A that takes a B?
If it isn't, then how should that be written?

/MF

Received on 2022-06-03 17:28:15