Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4603: circular_buffer_space_optimized does not grow when capacity runs out
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-08-28 21:01:53
#4603: circular_buffer_space_optimized does not grow when capacity runs out
----------------------------------------+-----------------------------------
Reporter: daniel.amthauer@⦠| Owner: jano_gaspar
Type: Bugs | Status: new
Milestone: To Be Determined | Component: circular_buffer
Version: Boost 1.43.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------------+-----------------------------------
Comment (by anonymous):
I believe the code is right. If you create a space optimized circular
buffer of a particular capacity e.g. of 10 elements it's capacity should
remain unchanged (unless it is changed explicitly). When you normally
instantiate the space optimized buffer the allocated memory (internal
capacity) is zero. As you fill the buffer with elements the internal
capacity grows but upto 10 elements. When you insert more than 10 elements
then the oldest elements get overwriten. (And vice versa if you remove the
elemens from the buffer the allocated memory slowly decreases.)
Hope this makes sense.
Jan
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4603#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC