Not really understanding an exercise...

Hi guys. I'm trying to do all the exercises in Stroustrup's 4th edition and now I'm in 13th chapter "Exception Handling". Mostly he talks about exceptions and RAII.
So I finished reading it and here is the 1st exercise what I already don't really understand

Write a Checked_ptr<T> that uses exceptions to signal run-time errors for a pointer supposed to point to an element of an array (or one-beyond-the-end-of the array).


I don't really understand what this Checked_ptr is supposed to do and how its supposed to be used.

In its constructor do I initialize it with a container? Just an pointer to one of containers elements? etc.

Any explanation about the rules of this exercise would be appreciated
Topic archived. No new replies allowed.