192 unsigned int nbok = 0;
200 std::vector<Point> g, v;
202 v.push_back(
Point(3,4) );
203 v.push_back(
Point(5,0) );
204 v.push_back(
Point(4,3) );
205 v.push_back(
Point(0,5) );
206 v.push_back(
Point(-3,-4) );
207 v.push_back(
Point(-5,0) );
208 v.push_back(
Point(-4,-3) );
209 v.push_back(
Point(0,-5) );
210 v.push_back(
Point(3,-4) );
211 v.push_back(
Point(4,-3) );
212 v.push_back(
Point(-3,4) );
213 v.push_back(
Point(-4,3) );
215 g.push_back(
Point(5,0) );
216 g.push_back(
Point(4,3) );
217 g.push_back(
Point(3,4) );
218 g.push_back(
Point(0,5) );
219 g.push_back(
Point(-3,4) );
220 g.push_back(
Point(-4,3) );
221 g.push_back(
Point(-5,0) );
222 g.push_back(
Point(-4,-3) );
223 g.push_back(
Point(-3,-4) );
224 g.push_back(
Point(0,-5) );
225 g.push_back(
Point(3,-4) );
226 g.push_back(
Point(4,-3) );
230 std::sort(v.begin(), v.end(), comp);
231 std::copy(v.begin(), v.end(), ostream_iterator<Point>( std::cout,
" " ) );
232 std::cout << std::endl;
234 if ( std::equal(v.begin(), v.end(), g.begin()) )
237 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") " << endl;
241 std::sort(v.begin(), v.end(), comp);
242 std::copy(v.begin(), v.end(), ostream_iterator<Point>( std::cout,
" " ) );
243 std::cout << std::endl;
245 if ( std::equal(v.begin(), v.end(), g.begin()) )
248 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") " << endl;