Ring-Buffer
Ring-Buffer copied to clipboard
simple C++11 ring buffer implementation, allocated and evaluated at compile time
If I want a ring-buffer for the multi-producer multi-consumer case, and I protect access to the buffer with a mutex, am I correct that fake_tso should be true in the...
It would be nice to have an iterator interface on the RingBuffer, then you can use the STL algorithms on the RingBuffer. All required for that is a `begin` and...
Yeah, it's O(n) and will need to be protected with mutexes, but still useful when it's a rare case...
```warning: requested alignment '0' is not a positive power of 2 [-Wattributes]``` according to the c++11 standard zero alignment should be ignored. >"— if the constant expression evaluates to zero,...
Nice ring buffer implementation! I like it and plan to use it with socket-IO in a stack. I had an issue with writing and reading sockets as they require continuous...
Hi, some functions have a void parameter instead of an empty parameter list. https://github.com/jnk0le/Ring-Buffer/blob/dade96727256c6d7466f716c54bc3bfca3875952/ringbuffer.hpp#L52
Hi, how about adding a template parameter which makes it an overwriting ring buffer? I.e. when buffer is full, calling insert() replaces the oldest value with the new value. Then...
Hi, as I understand your ring buffer is targeted for embedded systems, which is exactly what I am using it for. I think it can be even more generalized, by...
Well, I know this may be a silly question.... I just want to make sure if I need to pay attention to something.
Could you add find function by self-defined find expression?