I have wrote a set of memory management routines for a sandbox 3d rendering engine of mine to start playing around with some concepts. One of the question I have now is if I want to supply my own custom allocator to the STL containers, what are some of the things I have to take note of? I am thinking of replacing the default std::allocator with a pool allocator here. How do I ensure that the STL containers do not over allocate more memory than it is required?
Asked
Active
Viewed 46 times
1
-
1See also [this answer](http://stackoverflow.com/a/8019003/841108) – Basile Starynkevitch Dec 13 '16 at 09:54