4 ms·
Maybe you're referring to something else, but std::allocator was in c++98
by kevinnk 12y ago
Maybe you're referring to something else, but std::allocator was in c++98
- ezy 12y agoYes, but (according to the spec) it was stateless -- which made it worthless for the purposes I'm describing. The original purpose was to support custom static strategies for allocation (e.g. i86 near/far pointers or one memory pool for one kind of object for the whole program), not dynamic memory pools and arenas. C++11 fixed that, which is why I mentioned it. That said, by C++03, most STL implementations supported stateful allocators (and that's what I've used when I've had to use C++), but the standard took a while to catch up.