Original Post
I am currently developing a MUD server. I usually use char *, or char[] when I need a string. But that is ugly, and very limited. So I kinda want to develop my own string class. As an issue I found, it the fact I need to allocate memory. I could resize when memory when a larger string is inserted, and don''t resize when a smaller one is inserted.
However, I know the STL implementation of string uses allocators for it''s memory management. What are these allocators EXACTLY and how do they work?
Toolmaker
-Earth is 98% full. Please delete anybody you can.
-Earth is 98% full. Please delete anybody you can.