Item 11. Writing Exception-Safe Code桺art 4
Difficulty: 8
Mid-series interlude: What have we accomplished so far?
Now that we have implemented an exception-safe and exception-neutral Stack<T>, answer these questions as precisely as possible:
What are the important exception-safety guarantees?
For the Stack<T> that was just implemented, what are the requirements on T, the contained type?
|