refactor: rename shallow_copy -> shallow_move + streamline
Use RCollector.std_copy_for where appropriate
This commit is contained in:
parent
2003c3c6f9
commit
d16f2a0484
44 changed files with 72 additions and 114 deletions
|
|
@ -65,14 +65,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
DVarRef *
|
||||
DVarRef::shallow_move(obj<AAllocator> mm) const noexcept
|
||||
DVarRef::shallow_move(obj<ACollector> gc) noexcept
|
||||
{
|
||||
DVarRef * copy = (DVarRef *)mm.alloc_copy((std::byte *)this);
|
||||
|
||||
if (copy)
|
||||
*copy = *this;
|
||||
|
||||
return copy;
|
||||
return gc.std_copy_for(this);
|
||||
}
|
||||
|
||||
std::size_t
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue