mirror of https://github.com/CGAL/cgal
Added namespace std prefix in places.
This commit is contained in:
parent
b85e77f463
commit
65fc4aecc8
|
|
@ -59,7 +59,7 @@ MyVector operator-(const MyPoint& p, const MyPoint& q)
|
|||
// MySegment
|
||||
//-----------------------------------------------------------------------//
|
||||
|
||||
typedef pair<MyPoint,MyPoint> MySegment;
|
||||
typedef std::pair<MyPoint,MyPoint> MySegment;
|
||||
|
||||
ostream& operator<<(ostream& to, const MySegment& e)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ class Polygon_2 {
|
|||
#else
|
||||
template <class InputIterator>
|
||||
Polygon_2(InputIterator first, InputIterator last)
|
||||
{ copy(first, last, back_inserter(d_container)); }
|
||||
{ std::copy(first, last, std::back_inserter(d_container)); }
|
||||
#endif
|
||||
|
||||
//--------------------------------------------------------
|
||||
|
|
@ -191,7 +191,7 @@ class Polygon_2 {
|
|||
return;
|
||||
|
||||
typename _Container::iterator i = d_container.begin();
|
||||
reverse(++i, d_container.end());
|
||||
std::reverse(++i, d_container.end());
|
||||
}
|
||||
|
||||
//--------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -29,16 +29,16 @@ void test_polygon(const R&, const Point&, const char* FileName)
|
|||
std::vector<Point> polygon;
|
||||
|
||||
from >> point;
|
||||
copy(istream_iterator<Point, ptrdiff_t>(from),
|
||||
istream_iterator<Point, ptrdiff_t>(),
|
||||
back_inserter(polygon)
|
||||
std::copy(std::istream_iterator<Point, ptrdiff_t>(from),
|
||||
std::istream_iterator<Point, ptrdiff_t>(),
|
||||
std::back_inserter(polygon)
|
||||
);
|
||||
|
||||
// show the point and the polygon
|
||||
cout << "point: " << point << endl;
|
||||
cout << "polygon:" << endl;
|
||||
copy(polygon.begin(), polygon.end(),
|
||||
ostream_iterator<Point>(cout, "\n"));
|
||||
std::copy(polygon.begin(), polygon.end(),
|
||||
std::ostream_iterator<Point>(cout, "\n"));
|
||||
cout << endl;
|
||||
|
||||
iterator left =
|
||||
|
|
|
|||
|
|
@ -86,9 +86,9 @@ void test_iterators(ListPolygon& p, const ListPolygon& q)
|
|||
|
||||
{
|
||||
VC v = p.vertices_circulator();
|
||||
iterator_category(v);
|
||||
value_type(v);
|
||||
distance_type(v);
|
||||
std::iterator_category(v);
|
||||
std::value_type(v);
|
||||
std::distance_type(v);
|
||||
|
||||
VC vstart(v);
|
||||
if (v != 0)
|
||||
|
|
@ -101,9 +101,9 @@ void test_iterators(ListPolygon& p, const ListPolygon& q)
|
|||
cout << *vi << endl;
|
||||
|
||||
EC e = p.edges_circulator();
|
||||
iterator_category(e);
|
||||
value_type(e);
|
||||
distance_type(e);
|
||||
std::iterator_category(e);
|
||||
std::value_type(e);
|
||||
std::distance_type(e);
|
||||
|
||||
EC estart(e);
|
||||
if (e != 0)
|
||||
|
|
@ -112,16 +112,16 @@ void test_iterators(ListPolygon& p, const ListPolygon& q)
|
|||
++e;
|
||||
} while (e != estart);
|
||||
|
||||
for (EI ei = p.edges_begin(); ei != p.edges_end(); ++ei)
|
||||
for (EI ei = p.edges_begin(); p.edges_end() != ei; ++ei)
|
||||
cout << *ei << endl;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------//
|
||||
{
|
||||
VCC v = q.vertices_circulator();
|
||||
iterator_category(v);
|
||||
value_type(v);
|
||||
distance_type(v);
|
||||
std::iterator_category(v);
|
||||
std::value_type(v);
|
||||
std::distance_type(v);
|
||||
|
||||
VCC vstart(v);
|
||||
if (v != 0)
|
||||
|
|
@ -134,9 +134,9 @@ void test_iterators(ListPolygon& p, const ListPolygon& q)
|
|||
cout << *vi << endl;
|
||||
|
||||
EC e = q.edges_circulator();
|
||||
iterator_category(e);
|
||||
value_type(e);
|
||||
distance_type(e);
|
||||
std::iterator_category(e);
|
||||
std::value_type(e);
|
||||
std::distance_type(e);
|
||||
|
||||
EC estart(e);
|
||||
if (e != 0)
|
||||
|
|
@ -270,7 +270,7 @@ void test_update_operations(const ListPolygon& p,
|
|||
VI middle = q.vertices_begin();
|
||||
VI last = q.vertices_end();
|
||||
++middle;
|
||||
rotate(first, middle, last);
|
||||
std::rotate(first, middle, last);
|
||||
assert(p==q);
|
||||
|
||||
// test update operations
|
||||
|
|
|
|||
Loading…
Reference in New Issue