refactor: rename shallow_copy -> shallow_move + streamline
Use RCollector.std_copy_for where appropriate
This commit is contained in:
parent
0cb20c3789
commit
8ac5ba9bbb
28 changed files with 45 additions and 62 deletions
|
|
@ -34,14 +34,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
DInteger *
|
||||
DInteger::shallow_move(obj<AAllocator> mm) const noexcept
|
||||
DInteger::shallow_move(obj<ACollector> gc) noexcept
|
||||
{
|
||||
DInteger * copy = (DInteger *)mm.alloc_copy((std::byte *)this);
|
||||
|
||||
if (copy)
|
||||
*copy = *this;
|
||||
|
||||
return copy;
|
||||
return gc.std_copy_for(this);
|
||||
}
|
||||
|
||||
size_t
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue