27 Sep
2017
27 Sep
'17
6:28 p.m.
Den 26-09-2017 kl. 09:50 skrev degski via Boost:
On 26 September 2017 at 09:33, degski
wrote: Then looking how the free_capacity is split between front and back we get 95 and 23 (or the other way around, depending on whether we first push_back or first push_front, even when front- and back-pushes are interleaved).
Maybe a rebalance ( size_type hint ) member function could address this issue and relocate the "zero-point" to the hinted at position (possible safe and unsafe). A clear ( size_type hint ) could do the same on clearing.
It's definitely something to ponder. At the moment there is an asymmetry between clear and the expectation of where to push things next. kind regards Thorsten