Boost logo

Boost :

From: Bjorn Reese (breese_at_[hidden])
Date: 2020-05-22 15:08:16


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/vector.hpp

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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk