[Development] New circular buffer container for Qt5
thiago at kde.org
Fri Oct 28 15:30:45 CEST 2011
On Friday, 28 de October de 2011 14:11:08 Sean Harmer wrote:
> This class is similar to QVector but it provides circular semantics. For
> example, appending to an already full circular buffer will overwrite the
> oldest item i.e. it forms a kind of LRU cache. The API is essentially a
> Qt'ified version of the boost::circular_buffer  API so hopefully people
> will find it simple to use.
I'd like to see this API.
> Appending and prepending are always O(1) operations which fills in a gap in
> the performance characteristics offered by the existing Qt containers.
How does it implement copy-on-write semantics?
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 190 bytes
Desc: This is a digitally signed message part.
More information about the Development