9 Oct
2017
9 Oct
'17
10:12 p.m.
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