Prety fast and simple implementation of Ring Buffer maded in a few week-ends primarly for own game engine.
Header-only , just drop into your project and include it.
NOTE* For declaration of RingBuffer you need to specify value type and allocator type.
If you don't want to use any specific allocators, you can use simple allocator defined within Ring Buffer header(just wrapper over malloc/free), just define RING_BUFFER_USE_SIMPLE_ALLOCATOR.