for (x = 0; x != end(array); ++x) do_something(array, x);