Default allocator of container plus element type

Jacob Carlborg doob at me.com
Thu Oct 5 11:46:20 UTC 2017


On 2017-10-05 13:35, 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`?
> 
> 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.

If the programmer have no idea what allocator to choose, then I would 
say they should use the built-in array and associative array.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list