refactor: rename shallow_copy -> shallow_move + streamline

Use RCollector.std_copy_for where appropriate
This commit is contained in:
Roland Conybeare 2026-04-04 16:33:35 -04:00
commit d16f2a0484
44 changed files with 72 additions and 114 deletions

View file

@ -120,14 +120,9 @@ namespace xo {
}
DSequenceExpr *
DSequenceExpr::shallow_move(obj<AAllocator> mm) const noexcept
DSequenceExpr::shallow_move(obj<ACollector> gc) noexcept
{
DSequenceExpr * copy = (DSequenceExpr *)mm.alloc_copy((std::byte *)this);
if (copy)
*copy = *this;
return copy;
return gc.std_copy_for(this);
}
std::size_t