A Header only libray for STL type Circular Buffer that support all the algorithms built for STL containers
- git clone https://github.com/ArslanSaleem/Circular-Buffer.git
- cd Circular-Buffer
- Make director build
- cd build
- cmake ..
- make
- ./test_circular_buffer
#include <CircularBuffer.hpp>
CircularBuffer<float, 4> cb{9.f, 6.f, 3.f};
cb.push_back(1.f);
cb.pop_front();
std::copy(cb.cbegin(), cb.cend(), std::ostream_iterator<T>(std::cout, ", "));