
8 Mar
2004
8 Mar
'04
1:13 a.m.
On Friday, March 5, 2004, at 01:42 AM, Jan Gaspar wrote:
________________________________________________ 4. docs: "Type Requirements": doesn't the T need to be DefaultConstructible as well, e.g. to support push_back(void)? Yes, but DefaultConstructible is needed only if you use such a method. In general it is not needed. For example you can just create empty circular_buffer and use push_back(T&). In this case T doesn't have to be DefaultConstructible.
That means you have to mention this type requirement in the documentation for the push_back() method. Cheers, Jeremy