I notice that the allocator in c++ provides specialization for type void. Is there any special purpose to do this? It doesn’t make sense to allocate memory for void type, right?
I notice that the allocator in c++ provides specialization for type void. Is there
Share
This old Standard Librarian column by Matt Austern has a fairly thorough discussion of allocators in general, including this tidbit:
malloc_allocator is the sample implementation that Austern uses in his example, but it holds true for the general case.