Associative arrays with new std experimental allocators.
To use this package, run the following command in your project's root directory:
Put the following dependency into your project's dependences section:
Associative arrays with manual memory management
All enries and buckets would be dealocated and disposed by internal implementation's destructor. The destructor is called by garbage collector (by default).
//std.experimental.allocator is included into `aammm` import std.experimental.allocator.mallocator; import aammm; auto a = aa!(string, int)(Mallocator.instance); a["foo"] = 0; a.remove("foo"); //dealocates and disposes the entry assert(a == null); // should not crash
- Registered by Ilya Yaroshenko
- 0.0.2 released 7 years ago