xo-gc stack: + request-gc-statistics() primitive
1. xo-gc now depends on xo-object2. 2. use genfacet for ICollector_DX1Collector 3. moves xo-gc utest previously in xo-object2 to more natural location in xo-gc/
This commit is contained in:
parent
faafd5c1fa
commit
375f8c1ec4
7 changed files with 64 additions and 135 deletions
|
|
@ -16,13 +16,14 @@ namespace xo {
|
|||
struct DInteger {
|
||||
using AAllocator = xo::mm::AAllocator;
|
||||
using ACollector = xo::mm::ACollector;
|
||||
using AGCObject = xo::mm::AGCObject;
|
||||
using ppindentinfo = xo::print::ppindentinfo;
|
||||
using value_type = long;
|
||||
|
||||
explicit DInteger(long x) : value_{x} {}
|
||||
|
||||
/** will likely want this to default to ANumeric, once we have it **/
|
||||
template <typename AFacet>
|
||||
template <typename AFacet = AGCObject>
|
||||
static obj<AFacet, DInteger> box(obj<AAllocator> mm, long x);
|
||||
|
||||
/** allocate boxed value @p x using memory from @p mm **/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue