
22 Mar
2009
22 Mar
'09
5:35 p.m.
On Sat, Mar 21, 2009 at 16:22, Ross Levine <ross.levine@uky.edu> wrote:
I was using Boost.Circular_buffer for the first time today, and noticed that the set_capacity and rset_capacity methods did the opposite of what I expect; namely, set_capacity will clip elements from the back and rset_capacity from the front, despite the fact that insertion using push_back will overwrite elements from the front. Is there any rationale for this operation?
Perhaps in analogy to a container's resize(), which removes from the back?