FYI - mo' work on std.allocator
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Sun Apr 27 16:53:49 PDT 2014
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
More information about the Digitalmars-d
mailing list