std.container and classes

Peter Alexander peter.alexander.au at gmail.com
Sat Dec 17 17:22:27 PST 2011


On 18/12/11 12:06 AM, Jesse Phillips wrote:
> But as to whether this should be what is implemented in the standard
> library, I don't know. You make mention of custom allocators and such. Is
> this interest going to be of benefit, or is it just something people are
> use to having from C++? If it makes sense to have such then the
> containers should support it. Don't classes allow for custom allocators?
> Is there a reason that can't be used? Do we need to improve on that?

Allocators are very commonly used in C++, although people rarely use 
them as they are implemented in the standard library because they were 
poorly designed. We can't repeat the same mistakes.


More information about the Digitalmars-d mailing list