Why doesn't std.containers support std.experimental.allocator?

user1234 user1234 at 12.de
Thu Aug 26 00:21:17 UTC 2021


On Wednesday, 25 August 2021 at 21:04:37 UTC, Menshikov wrote:
> I have no ideas, it seems to me it could have been solved a 
> long time ago without breaking change. But what are the reasons 
> why this does not happen?

- std.containers existed before the allocators
- std.experimental.allocator
    * is in a ["freezed" 
state](https://forum.dlang.org/post/730a99d2-1043-19b7-551a-c6f57790f422@erdani.org). it was asked not to use
      anymore
    * is experimental, so you cannot make non-experimental part
      of the library depends on it

Alternatively you can use [emsi 
containers](https://code.dlang.org/packages/emsi_containers), 
which are based on the allocators.


More information about the Digitalmars-d mailing list