Gavin Lambert Via Boost wrote:
On 9/05/2017 01:48, Adam Wulkiewicz wrote:
I noticed that in the documentation a word "container" is used WRT poly collections. AFAIU this is not correct because poly_collection doesn't meet the requirements of C++ container as defined in the standard, i.e. allocator_traits
::construct should be called only for the element type (23.2.1.3) On that note, do you know of a more-comprehensible-than-standardese guide on how allocator_traits is supposed to be used for node-based custom container types? I've tried to figure it out a couple times but I'm sure I'm missing important points.
No, sorry, I'm not aware of any literature regarding it, though it doesn't mean it doesn't exist. I don't consider myself an expert in this area. I'd suggest to check out several STL implementations and Boost.Container's code for hints. Adam