xo-alloc2: + Allocator.alloc_range() with DArena input
This commit is contained in:
parent
d8ed0d6235
commit
181ae9f12b
13 changed files with 158 additions and 59 deletions
|
|
@ -39,12 +39,13 @@ namespace xo {
|
|||
return I::contains(_dcast(d), p);
|
||||
}
|
||||
AllocError last_error(Copaque d) const noexcept override { return I::last_error(_dcast(d)); }
|
||||
|
||||
// non-const methods
|
||||
|
||||
AllocInfo alloc_info(Copaque d, value_type mem) const noexcept override {
|
||||
return I::alloc_info(_dcast(d), mem);
|
||||
}
|
||||
range_type alloc_range(Copaque d, DArena & mm) const noexcept override { return I::alloc_range(_dcast(d), mm); }
|
||||
|
||||
// non-const methods
|
||||
|
||||
bool expand(Opaque d,
|
||||
std::size_t z) const noexcept override { return I::expand(_dcast(d), z); }
|
||||
value_type alloc(Opaque d,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue