Boost logo

Boost :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2004-03-07 20:13:28

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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at