Deque::fill
Paolo Carlini
pcarlini@suse.de
Mon Dec 12 15:02:00 GMT 2005
chris jefferson wrote:
> On a similar note to some simplifications in vector, would it be
> better to "admit" that the size of a buffer is a compile-time
> constant, and make it a static const, rather than a function call?
You mean, we don't need anymore compiler kludges:
* This function started off as a compiler kludge from SGI, but seems to
* be a useful wrapper around a repeated constant expression.
:)
Yes, I think so.
> 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...)
Paolo.
More information about the Libstdc++
mailing list