Assuming x and y are accessible as members of your
Point
type,
for (Vector<point>::iterator i = vec.begin(); i != vec.end(); ++i) {
int x = i->x; }
</point>
If your compiler supports the C++11 range-based for, this could become
for (Point const &p: vec) {
}
Or using
<algorithm>
and C++11 lambda's:
std::for_each(vec.begin(), vec.end(), [&]
(Point const &p)
{
});