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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.