
12 Jun
2008
12 Jun
'08
11:58 a.m.
Jan Gaspar skrev:
Sorry I don't have time to do this. Anyway IMO implementing reserve would give an impression that the capacity is not fixed
but how can it be fixed if set_capacity can alter it?
and increases as you put elements into the circular buffer. And at last circular buffer is not a vector.
no, but there are overlaps in functionality/use-cases and not having reserve makes it harder to write generic code that accepts either type. -Thorsten