Wednesday, October 13, 2010

auto_ptr

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.

No comments:

Post a Comment