I l@ve RuBoard previous section next section

Item 11. Writing Exception-Safe Code—Part 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:

  1. What are the important exception-safety guarantees?

  2. For the Stack<T> that was just implemented, what are the requirements on T, the contained type?

I l@ve RuBoard previous section next section