[Development] New circular buffer container for Qt5

Rohan McGovern rohan.mcgovern at nokia.com
Mon Oct 31 01:54:26 CET 2011

Sean Harmer said:
> Hi,
> I would like to introduce a new generic container class to Qt, 
> QCircularBuffer. This email is to see if there are any objections to doing so.
> 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 [1] API so hopefully people 
> will find it simple to use.


Any comments on how QCircularBuffer compares to the existing
QContiguousCache[1] ?

[1] http://doc.qt.nokia.com/4.7/qcontiguouscache.html

More information about the Development mailing list