|
Boost Users : |
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2006-08-08 16:39:52
gast128 wrote:
>>>boost::ptr_vector<int> v2;
>>
>>[remark: I assume you only use int as example?]
>
> Yes. Of cours in 'real' programmers life, these are classes.
>
>
>>2. provide a new function:
>>template< class PtrCont >
>>class ptr_back_insert_iterator<PtrCont>
>>{...};
>
> I find this an appealing alternative.
It is certainly easier for you to add it than to wait for me to
extend the interface of the containers. :-)
OTOH, it is quite irritating that this assymmetry between input and
output in the containers makes the containers less useable in such contexts.
-Thorsten
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net