std::vector::insert => strong excepption guarantee?

Paolo Carlini pcarlini@suse.de
Sun May 30 11:03:00 GMT 2004


Dhruv Matani wrote:

>>Well, Josuttis
>>    
>>
>I don't have that book ;-(
>  
>
The relevant pages are only a few, 3-4. Perhaps you my find it in a library?

>>Indeed, the SGI/HP code appear to conform to this requirement, which is 
>>not really the strong guarantee.
>>    
>>
>Even I think so. However, the strong guarantee would be when the copy
>ctor and assignment are allowed to throw, and still the code behaves as
>if nothing has happened? Am I right on this count?
>  
>
Yes, I think you are: "nothing happened", in the sense of a full roll back.

Paolo.



More information about the Libstdc++ mailing list