Allocators and Containers
Minty Fresh via Digitalmars-d
digitalmars-d at puremagic.com
Thu Feb 16 07:37:52 PST 2017
A lot of the usefulness of the std.experimental.allocators module
is lost because no other part of the stdlib actually ties into
the functionality provided by it.
For example, the Array type defined in std.container relies on
malloc() directly, so if you wanted to use a type to replace
built-in arrays with a custom allocator, you'd need to implement
your own container type.
Would it make sense to allow the std.container types to accept
IAllocator instances, and to allow custom allocators? (Using
Mallocator by default.)
More information about the Digitalmars-d