22 May
2020
22 May
'20
3:08 p.m.
On 2020-05-22 16:08, Andrey Semashev via Boost wrote:
One allocation might not be a problem, and small_ring_queue allows to avoid even that, if the optimal capacity is known at compile time.
This corresponds almost to https://github.com/breese/trial.circular/blob/develop/include/trial/circular... This is a circular buffer that operates on an std::vector. Capacity is only increased when the user calls reserve(). It is trivial to write a wrapper on top of this that automatically increases capacity when the buffer is full.