refactor: use GCObjectVisitor api w/ gco_shallow_move
This commit is contained in:
parent
db4ccfd911
commit
3489699f5d
8 changed files with 51 additions and 15 deletions
|
|
@ -64,11 +64,14 @@
|
|||
nonconst_methods: [
|
||||
// Opaque shallow_move(obj<ACollector>) noexcept
|
||||
{
|
||||
name: "shallow_move",
|
||||
doc: ["move instance using collector"],
|
||||
name: "gco_shallow_move",
|
||||
doc: [
|
||||
"move instance using object visitor.",
|
||||
"Arguably abusing the word 'visitor' here",
|
||||
],
|
||||
return_type: "Opaque",
|
||||
args:[
|
||||
{type: "obj<ACollector>", name: "gc"},
|
||||
{type: "obj<AGCObjectVisitor>", name: "gc"},
|
||||
],
|
||||
const: true,
|
||||
noexcept: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue