J
John Harrison
Where can I find information on exception safety in the STL? I.e. which
methods on which types offer what level of exception safety.
Josuttis has a useful list of classes and methods but he fails to mention
common operations such as copy construction and assignment. I can't find any
mention of this in my copy of the standard at all, although according to
Josuttis exception safety guarantees are part of the standard.
A specific question, I've looked at the gcc 3.2 and the VC++.NET
implementation of list<T>:perator= and neither appears to be exception
safe. That is if an excpetion is thrown you could end up with a partially
copied list. This surprises me, but is it OK according to the standard?
john
methods on which types offer what level of exception safety.
Josuttis has a useful list of classes and methods but he fails to mention
common operations such as copy construction and assignment. I can't find any
mention of this in my copy of the standard at all, although according to
Josuttis exception safety guarantees are part of the standard.
A specific question, I've looked at the gcc 3.2 and the VC++.NET
implementation of list<T>:perator= and neither appears to be exception
safe. That is if an excpetion is thrown you could end up with a partially
copied list. This surprises me, but is it OK according to the standard?
john