Boost logo

Boost :

Subject: Re: [boost] [review] Review of PolyCollection starts today (May 3rd)
From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 2017-05-13 00:22:58


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<allocator_type>::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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk