You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
andend
method returning the iterators.You could then, for instance, sum up the values in the BufferEasily using
std::accumulate
.The text was updated successfully, but these errors were encountered: