Added a bunch more stuff:

* new optional primitives:

- empty() returns true if no current allocation

- zeroesAllocations is true if the allocator automatically sets freshly allocated memory to zero

- resolveInternalPointer(p) gives the allocated block corresponding to p

* An interesting internal type EmbeddedTree: a binary search tree that can be threaded within memory blocks making them more searchable.

* A type WithInternalPointers that uses an EmbeddedTree to implement resolveInternalPointer.

* Default implementation of alignedReallocate.

* Improved the sbrk-based region.

https://github.com/andralex/phobos/blob/allocator/std/allocator.d

The name WithInternalPointers is rather goofy - ideas?

http://erdani.com/d/phobos-prerelease/std_allocator.html#.WithInternalPointers



Andrei

Reply via email to