This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]