Default allocator of container plus element type

Nordlöw per.nordlow at gmail.com
Thu Oct 5 11:39:47 UTC 2017


On Thursday, 5 October 2017 at 11:35:30 UTC, Nordlöw wrote:
> Would it be possible to set up a mapping (either formal or 
> informal) of each typical container (such as array, linked-list 
> etc) plus element type to a suitable default allocator? And 
> perhaps add this to the documentation of 
> `std.experimental.allocator`?

To clarify I'm saying that, D's "design by introspection" could 
help out here.

> I currently get the feeling that most programmers have no idea 
> at all what allocator to choose for each given combination of 
> container and element type they want to use.

Of course, I still think that `std.experimental.allocator` is one 
of Phobos' most brilliant modules, Andrei.


More information about the Digitalmars-d mailing list