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

Paolo Carlini pcarlini@suse.de
Sat May 29 11:49:00 GMT 2004


Dhruv Matani wrote:

>	I wanted to know whether we are providing a strong exception guarantee
>or just a basic one for std::vector::insert?
>
My impression is that the strong guarantee is very rare in library and 
insert
provides a basic one (for instance, in various places in the 
implementation of
<vector> you may find copy/move operations intermixed with _Construct: 
if the
latter throws the catch only frees the memory)

While we are at it: what do people think, in general, about a large 
scale QoI
project aimed at providing the strong guarantee wherever possible?

Paolo.



More information about the Libstdc++ mailing list