Boost logo

Boost :

Subject: [boost] [circular buffer] logic behind set_capacity vs rset_capacity?
From: Ross Levine (ross.levine_at_[hidden])
Date: 2009-03-21 16:22:34

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?

Boost list run by bdawes at, gregod at, cpdaniel at, john at