O'Reilly logo

The C++ Programming Language, Special Edition by New Jersey Stroustrup Bjarne AT&T Labs Murray Hill

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix E. Standard-Library Exception Safety

 

Everything will work just as you expect it to, unless your expectations are incorrect.

 
 --Hyman Rosen

Exception safetyexception-safe implementation techniquesrepresenting resourcesassignmentpush_back()constructors and invariantsstandard container guaranteesinsertion and removal of elementsguarantees and tradeoffsswap()initialization and iteratorsreferences to elementspredicatesstrings, streams, algorithms, valarray, and complexthe C standard libraryimplications for library usersadviceexercises.

Introduction

Standard-library functions often invoke operations that a user supplies as function or template arguments. Naturally, some of these user-supplied ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required