Implementation of forward_list (and compressed_pair)
Paolo Carlini
paolo.carlini@oracle.com
Tue Oct 14 15:07:00 GMT 2008
Paolo Carlini wrote:
> Ah! I think this is right! And, I must say, I'm "guilty" of having
> sidetracked Ed to the issue of having a pair of allocators stored for
> efficiency. Now I see that indeed thanks to the new variadic
> allocator::construct one can construct in place using the same node
> allocator (provided one adds an appropriate constructor for the node as
> you are doing above).
>
To wit, this kind of patch appear to work well for std::list.
Paolo.
///////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: p
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20081014/9197ce6a/attachment.ksh>
More information about the Libstdc++
mailing list