/* CSE 333 Su12 lecture 13 demo: scopedarray.cc */ /* Gribble/Perkins */ // boost scoped_array pointer. Like scoped_ptr, but // owns an array, not a single item #include #include int main(int argc, char **argv) { boost::scoped_array x(new int[10]); x[0] = 1; x[1] = 2; return EXIT_SUCCESS; }