Ring-Buffer icon indicating copy to clipboard operation
Ring-Buffer copied to clipboard

Implement iterator

Open aaarne opened this issue 3 years ago • 0 comments

It would be nice to have an iterator interface on the RingBuffer, then you can use the STL algorithms on the RingBuffer. All required for that is a begin and end method returning the iterators. You could then, for instance, sum up the values in the BufferEasily using std::accumulate.

aaarne avatar Sep 01 '21 09:09 aaarne