Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 657 Bytes

README.md

File metadata and controls

39 lines (26 loc) · 657 Bytes

circular-buffer

C++17/20 implementation of a circular buffer

Requirements

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.

Install

$ git clone https://github.com/massimo-marino/circular-buffer.git
$ cd circular-buffer
$ mkdir build
$ cd build
$ cmake ..
$ make

Run Unit Tests

$ cd src/unitTests
$ ./unitTests

Run Example

Remove -DDO_LOGS from CMAKE_CXX_FLAGS in the cmake file to see no logs printed at run-time.

$ cd ../example
$ ./circular-buffer-example