refactor: rename GCObject.shallow_copy -> shallow_move

resolve conflict since relying on move constructor in std_copy_for
This commit is contained in:
Roland Conybeare 2026-04-04 15:00:53 -04:00
commit 9a494d268b
8 changed files with 12 additions and 12 deletions

View file

@ -245,7 +245,7 @@ namespace xo {
size_type shallow_size() const noexcept;
/** clone string, using memory from allocator @p mm **/
DString * shallow_copy(obj<AAllocator> mm) const noexcept;
DString * shallow_move(obj<AAllocator> mm) const noexcept;
size_type forward_children(obj<ACollector> gc) noexcept;
/** fixup child pointers (trivial for DString, no children)

View file

@ -91,7 +91,7 @@ namespace xo {
std::size_t shallow_size() const noexcept;
/** clone unique string, using memory from allocator @p mm. **/
DUniqueString * shallow_copy(obj<AAllocator> mm) const noexcept;
DUniqueString * shallow_move(obj<AAllocator> mm) const noexcept;
/** fixup child pointers (trivial for DUniqueString, no gc-owned children **/
std::size_t forward_children(obj<ACollector> gc) noexcept;

View file

@ -54,8 +54,8 @@ namespace xo {
static size_type shallow_size(const DString & self) noexcept;
// non-const methods
/** copy instance using allocator **/
static Opaque shallow_copy(DString & self, obj<AAllocator> mm) noexcept;
/** move instance using allocator **/
static Opaque shallow_move(DString & self, obj<AAllocator> mm) noexcept;
/** during GC: forward immdiate children **/
static size_type forward_children(DString & self, obj<ACollector> gc) noexcept;
///@}

View file

@ -54,8 +54,8 @@ namespace xo {
static size_type shallow_size(const DUniqueString & self) noexcept;
// non-const methods
/** copy instance using allocator **/
static Opaque shallow_copy(DUniqueString & self, obj<AAllocator> mm) noexcept;
/** move instance using allocator **/
static Opaque shallow_move(DUniqueString & self, obj<AAllocator> mm) noexcept;
/** during GC: forward immdiate children **/
static size_type forward_children(DUniqueString & self, obj<ACollector> gc) noexcept;
///@}