8 Aug
2006
8 Aug
'06
8:39 p.m.
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