No auto_ptr operation can throw an exception.
This property of auto_ptr and of the swap() function is useful for writing exception-safe code.
Reference: More Exceptional C++ by Herb Sutter. Addison-Wesley, 2002., p. 145.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment