jnk0le / Ring-Buffer

simple C++11 ring buffer implementation, allocated and evaluated at compile time
MIT License
380 stars 64 forks source link

Add way to remove arbitrary element #18

Open dsandber opened 3 years ago

dsandber commented 3 years ago

Yeah, it's O(n) and will need to be protected with mutexes, but still useful when it's a rare case...

dsandber commented 3 years ago

For now I guess you can loop through removing and inserting all elements, but skipping the insertion for the one that needs to be removed.