Boost logo

Boost :

Subject: Re: [boost] [review] The review of Boost.DoubleEnded starts today: September 21 - September 30
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2017-10-09 22:12:30


On 09/10/2017 10:30, Thorsten Ottosen via Boost wrote:
> What if we did this:
>
> capacity() -> alias for back_capacity
> back_capacity() -> return size() + back_free_capacity()
> front_capacity() -> return size() + front_free_capacity()
>
> ?

I think it's very confusing. If we move elements while inserting on one
end and the free capacity of that end is zero, then capacity() has
sense, it's the limit where memory will be reallocated.

Best,

Ion


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