Hey, any good resource on how can i create an allocator? (std::map)
Hey, any good resource on how can i create an allocator? (std::map)
"Effective STL" by Scott Meyers has a chapter on allocators.
"The C++ Language" by Bjarne Stroustroup has a huge chapter on that.
What kind of allocator do you need? If you need a pool allocator (which is a common example) and you're not doing it for learning purposes, I'd prefer boost's pool allocator over writing my own.