Everything will work just as you expect it to, unless your expectations are incorrect.
Exception safety — exception-safe implementation techniques — representing resources — assignment — push_back
() — constructors and invariants — standard container guarantees — insertion and removal of elements — guarantees and tradeoffs — swap
() — initialization and iterators — references to elements — predicates — strings, streams, algorithms, valarray, and complex — the C standard library — implications for library users — advice — exercises.
Standard-library functions often invoke operations that a user supplies as function or template arguments. Naturally, some of these user-supplied ...