Lines Matching refs:deallocate
22 $(LI Adding `deallocate` capability to an allocator that lacks it (such as simple regions).)
259 static if (hasMember!(ParentAllocator, "deallocate"))
285 ParentAllocator) defines `deallocate`, `FreeTree` releases all of its
288 TODO: Splitting and coalescing should be implemented if `ParentAllocator` does not defined `deallocate`.
307 static if (hasMember!(ParentAllocator, "deallocate"))
327 bool deallocate(void[] b)
346 () nothrow @nogc { a.deallocate(b1); }();
347 () nothrow @nogc { a.deallocate(b3); }();
348 () nothrow @nogc { a.deallocate(b2); }();
371 () nothrow @nogc { a.deallocate(b); }();
381 /** Defined if `ParentAllocator.deallocate` exists, and returns to it
383 static if (hasMember!(ParentAllocator, "deallocate"))
391 parent.deallocate((cast(ubyte*) n)[0 .. n.size]);
407 // This is easy, just nuke the root and deallocate all from the
433 () nothrow @nogc { myAlloc.deallocate(_payload); }();
449 bool deallocate(void[] ) { if (alive) assert(false); return true; }
455 () nothrow @nogc { ft.deallocate(x); }();
473 bool deallocate(void[] )
484 () nothrow @nogc { ft.deallocate(x); }();
490 nothing to deallocate so MyAllocator can't deliver. */