Name Last Update
..
Ring_Buffer-v2 Loading commit data...
README.md Loading commit data...
Ring_Buffer.h Loading commit data...
Ring_Buffer.tcc Loading commit data...
add.cc Loading commit data...
ring_buffer.cc Loading commit data...

Templates

Two basic examples on templates. add.cc shows usage of function templates for "adding" values of some given type. The files ring_buffer.cc, Ring_Buffer.h and Ring_Buffer.tcc shows a use-case of a class template - a ring buffer. Due to the compiler model of templates, the definitions from Ring_Buffer.tcc is included in the header file instead of compiled separately.

Ring_Buffer-v2 is a modified variant where the user can choose which container to use as internal storage.