C++17/20 implementation of a circular buffer
cmake
is used to compile the sources.
The cmake file compiles with C++20
.
The unit tests are implemented in googletest: be sure you have installed googletest to compile.
$ git clone https://github.com/massimo-marino/circular-buffer.git
$ cd circular-buffer
$ mkdir build
$ cd build
$ cmake ..
$ make
$ cd src/unitTests
$ ./unitTests
Remove -DDO_LOGS
from CMAKE_CXX_FLAGS
in the cmake file to see no logs printed at run-time.
$ cd ../example
$ ./circular-buffer-example