I found my answer in a more up-to-date draft, and I posted my learnings on my blog.

by (Login ComputerGhost)
R

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.



    
This message has been edited by ComputerGhost on Apr 5, 2012 5:59 PM
This message has been edited by ComputerGhost on Apr 5, 2012 5:58 PM
This message has been edited by ComputerGhost on Apr 5, 2012 5:58 PM
This message has been edited by ComputerGhost on Apr 5, 2012 5:58 PM
This message has been edited by ComputerGhost on Apr 5, 2012 5:57 PM

Posted on Apr 5, 2012, 5:57 PM

Respond to this message   

Return to Index