Studying the C++ STL and Experiencing a sudden Problem. Please help me
I've been studying c++ and I have used Google and didn't find an explanation I understand. Even WikiPedia is doing the same thing. Can please tell me about allocators, what they are and how to use them.
http://en.cppreference.com/w/cpp/memory/allocator this may be useful. Your question had me curious so I looked it up. Seems the allocator is a class object defined in <memory>. From what I can tell is it is an object used to get the assigned memory to an object or assign memory to a new object. It's purposes seems to be for dynamic memory management. Hope this helps some.
yeah thanks but do you have any clue on how to declare and use it?
I think an allocator is something that somehow "prepares" the memory for a certain object of a certain size, so you can save something in there, it is used for containers like vector
it's on cppreference