Hello, is there something neat in the c++ standard library that can help
me set all elements of a two-dimensional array of pointers to NULL? Like
fill_n(), maybe? Right now, I'm using two for loops (one nested) and
wanted to know what alternatives there are. My compiler ships with a
preliminary TR1-implementation.
Another thing I need to do is to call delete on the pointers in the
array at some other point in the program, am I stuck with the two for
loops there?
- Eric
me set all elements of a two-dimensional array of pointers to NULL? Like
fill_n(), maybe? Right now, I'm using two for loops (one nested) and
wanted to know what alternatives there are. My compiler ships with a
preliminary TR1-implementation.
Another thing I need to do is to call delete on the pointers in the
array at some other point in the program, am I stuck with the two for
loops there?
- Eric
Comment