Deque::fill

Howard Hinnant hhinnant@apple.com
Tue Dec 13 17:44:00 GMT 2005


Sorry for the delayed response.  Been swamped.

On Dec 12, 2005, at 10:03 AM, Paolo Carlini wrote:

> A low hanging fruit seems fill,

Looks good to me.  Chris's note about the const looks good to.

>> I mainly ask as I had a look a while ago at simplifying deque in the
>> case that the objects are big enough it "degrades" into a vector of
>> pointers to pointers. While the best simplifications would require
>> ABI-breaking, it's possible to overload things like operator++,
>> operator+, etc on _Deque_iterators with simpler versions which the
>> compiler doesn't seem capable of deducing by itself.
>
> I guess Howard has something especially relevant to say here, because
> once I heard him talking about customers using very big objects  
> (rvalue
> references were of course part of the subject...)

I'm racking my brain here and nothing is coming up.  Except of course  
rvalue references are always part of my subjects. ;-)  I'm not  
convinced that degrading down to a node size of 1 is a good idea, but  
I guess any other choice would be abi-breaking as Chris notes.

-Howard



More information about the Libstdc++ mailing list