xo-alloc2 xo-object: bugfix + refactor -> IGCObject_DList builds
This commit is contained in:
parent
ae8b4348b3
commit
1caa002faa
5 changed files with 111 additions and 1 deletions
26
include/xo/object2/DList.hpp
Normal file
26
include/xo/object2/DList.hpp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/** @file DList.hpp
|
||||
*
|
||||
* @author Roland Conybeare, Dec 2025
|
||||
**/
|
||||
|
||||
#include "xo/alloc2/RGCObject.hpp"
|
||||
#include "xo/alloc2/IGCObject_Any.hpp"
|
||||
#include "xo/facet/obj.hpp"
|
||||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
|
||||
struct DList {
|
||||
using AGCObject = xo::mm::AGCObject;
|
||||
|
||||
DList(xo::obj<AGCObject> h,
|
||||
xo::obj<AGCObject> r) : head_{h}, rest_{r} {}
|
||||
|
||||
obj<AGCObject> head_;
|
||||
obj<AGCObject> rest_;
|
||||
};
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end DList.hpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue