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 ...

Get The C++ Programming Language, Special Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.