#include<iostream>
#include<vector>
using namespace std;
struct Point
{
int x;
int y;
};
int main()
{
vector<vector<Point>> point;
vector<vector<Point>>::iterator it;
vector<vector<Point>>::const_iterator& end = point.end();
//ここでpointに不定のデータが入る
for(it = point.begin() ;it == end;++it )
{
//ここでイテレータを使ってpointからデータを選別
}
return 0;
}
選別の部分は、連続量の両端のみを取得して、他は切り捨てると言う風にする予定でこっちは大丈夫です。