The files for this lab are in ~cs253/Labs/Container. Copy them to your directory.                 
In this lab, we will examine a template class called
fix
, which implements a fixed-size array.
This is similar to std::
array, as opposed to
std::
vector, which implements a variable-size array.
                
f[14]
doesn’t exist, no error message is given.
Change the operator[]
method in fix.h
to detect this error,
show a message, and exit.
iterator
sub-class
of fix
, and the changes to begin()
and end()
? The last
increment of the iterator is invalid. However, this error is not
detected. Change fix3.h so that this
error is detected, the same as in the previous step.
User: Guest