|
Boost : |
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2008-06-11 15:49:29
Jan Gaspar skrev:
> because:
> 1) it's behaviour is slightly different from the standard - you can increase but also decrease the capaciry of the container; decreasing of the capacity is not supported by reserve()
> 2) the word capacity is used all over the documentation of the circular buffer. I think set_capacity expresses better what the method does.
So the function is slightly different from the one in std::vector :-)
Having a reserve() won't hurt ... in fact, it will make it easier to
write code that works for both vector and circular_buffer.
-Thorsten
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk