mirror of https://github.com/CGAL/cgal
int -> size_t
This commit is contained in:
parent
48a7f8fb26
commit
b34d714f9b
|
|
@ -25,7 +25,7 @@ domain.
|
||||||
\def\ccLongParamLayout{\ccTrue}
|
\def\ccLongParamLayout{\ccTrue}
|
||||||
|
|
||||||
\ccFunction{template < class OutputIterator, class PointGenerator,
|
\ccFunction{template < class OutputIterator, class PointGenerator,
|
||||||
class Traits > OutputIterator random_convex_set_2( int n,
|
class Traits > OutputIterator random_convex_set_2( std::size_t n,
|
||||||
OutputIterator o, const PointGenerator& pg, Traits t =
|
OutputIterator o, const PointGenerator& pg, Traits t =
|
||||||
Default_traits);}
|
Default_traits);}
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ generated polygons is not known since it depends on the generated points.
|
||||||
|
|
||||||
\ccFunction{
|
\ccFunction{
|
||||||
template < class OutputIterator, class PointGenerator, class Traits >
|
template < class OutputIterator, class PointGenerator, class Traits >
|
||||||
OutputIterator random_polygon_2( int n, OutputIterator result,
|
OutputIterator random_polygon_2( std::size_t n, OutputIterator result,
|
||||||
const PointGenerator& pg, Traits t = Default_traits);
|
const PointGenerator& pg, Traits t = Default_traits);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ struct Random_convex_set_traits : public Random_convex_set_traits_2<Kernel>
|
||||||
template < class OutputIterator, class Point_generator >
|
template < class OutputIterator, class Point_generator >
|
||||||
inline
|
inline
|
||||||
OutputIterator
|
OutputIterator
|
||||||
random_convex_set_2( int n,
|
random_convex_set_2( std::size_t n,
|
||||||
OutputIterator o,
|
OutputIterator o,
|
||||||
const Point_generator& pg)
|
const Point_generator& pg)
|
||||||
{
|
{
|
||||||
|
|
@ -100,7 +100,7 @@ random_convex_set_2( int n,
|
||||||
template < class OutputIterator, class Point_generator, class R >
|
template < class OutputIterator, class Point_generator, class R >
|
||||||
inline
|
inline
|
||||||
OutputIterator
|
OutputIterator
|
||||||
CGAL_random_convex_set_2( int n,
|
CGAL_random_convex_set_2( std::size_t n,
|
||||||
OutputIterator o,
|
OutputIterator o,
|
||||||
const Point_generator& pg,
|
const Point_generator& pg,
|
||||||
Point_2< R >*)
|
Point_2< R >*)
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ namespace CGAL {
|
||||||
|
|
||||||
template < class OutputIterator, class Point_generator, class Traits >
|
template < class OutputIterator, class Point_generator, class Traits >
|
||||||
OutputIterator
|
OutputIterator
|
||||||
random_convex_set_2( int n,
|
random_convex_set_2( std::size_t n,
|
||||||
OutputIterator o,
|
OutputIterator o,
|
||||||
const Point_generator& pg,
|
const Point_generator& pg,
|
||||||
Traits t)
|
Traits t)
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ namespace CGAL {
|
||||||
// generated with uniform probability.
|
// generated with uniform probability.
|
||||||
//
|
//
|
||||||
template <class PointGenerator, class OutputIterator, class Traits>
|
template <class PointGenerator, class OutputIterator, class Traits>
|
||||||
OutputIterator random_polygon_2(int n, OutputIterator result,
|
OutputIterator random_polygon_2(std::size_t n, OutputIterator result,
|
||||||
const PointGenerator& pg, const Traits& traits)
|
const PointGenerator& pg, const Traits& traits)
|
||||||
{
|
{
|
||||||
typedef typename Traits::Point_2 Point_2;
|
typedef typename Traits::Point_2 Point_2;
|
||||||
|
|
@ -67,7 +67,7 @@ OutputIterator random_polygon_2(int n, OutputIterator result,
|
||||||
|
|
||||||
template <class PointGenerator, class OutputIterator>
|
template <class PointGenerator, class OutputIterator>
|
||||||
inline
|
inline
|
||||||
OutputIterator random_polygon_2( int n, OutputIterator result,
|
OutputIterator random_polygon_2( std::size_t n, OutputIterator result,
|
||||||
const PointGenerator& pg )
|
const PointGenerator& pg )
|
||||||
{
|
{
|
||||||
typedef typename std::iterator_traits<PointGenerator>::value_type Point_2;
|
typedef typename std::iterator_traits<PointGenerator>::value_type Point_2;
|
||||||
|
|
@ -108,7 +108,7 @@ OutputIterator copy_n_unique(InputIterator first, Size n,
|
||||||
typedef typename Traits::Less_xy_2 Less_xy_2;
|
typedef typename Traits::Less_xy_2 Less_xy_2;
|
||||||
|
|
||||||
std::set<Point_2, Less_xy_2> sorted_point_set;
|
std::set<Point_2, Less_xy_2> sorted_point_set;
|
||||||
for (int i = 0; i < n; i++)
|
for (std::size_t i = 0; i < n; i++)
|
||||||
{
|
{
|
||||||
if (sorted_point_set.insert(*first).second)
|
if (sorted_point_set.insert(*first).second)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue