The version of the working draft that I had was not the most recent (I did not know that when I made my original post). I found the most recent free version of the C++ standard specifications, and though it does not explicitly say that allocator_type::pointer and allocator_type::reference are just regular ol' pointers and references, it does have some data in the table of allocator requirements that do imply such. I am too sleepy to repeat what I said on my blog post on the matter (link below), but some paragraphs about halfway through it explain the reasoning. Check out my blog post on the issue at <http://nathanbelue.blogspot.com/2012/04/container-that-uses-allocator.html>. It also goes into detail about how to use an allocator in a container. There aren't enough sources out there, so I posted what I have learned about allocators.
|