int -> size_t

This commit is contained in:
Andreas Fabri 2010-09-23 19:49:27 +00:00
parent 48a7f8fb26
commit b34d714f9b
5 changed files with 8 additions and 8 deletions

View File

@ -25,7 +25,7 @@ domain.
\def\ccLongParamLayout{\ccTrue}
\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 =
Default_traits);}
{

View File

@ -22,7 +22,7 @@ generated polygons is not known since it depends on the generated points.
\ccFunction{
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);
}
{

View File

@ -89,7 +89,7 @@ struct Random_convex_set_traits : public Random_convex_set_traits_2<Kernel>
template < class OutputIterator, class Point_generator >
inline
OutputIterator
random_convex_set_2( int n,
random_convex_set_2( std::size_t n,
OutputIterator o,
const Point_generator& pg)
{
@ -100,7 +100,7 @@ random_convex_set_2( int n,
template < class OutputIterator, class Point_generator, class R >
inline
OutputIterator
CGAL_random_convex_set_2( int n,
CGAL_random_convex_set_2( std::size_t n,
OutputIterator o,
const Point_generator& pg,
Point_2< R >*)

View File

@ -36,7 +36,7 @@ namespace CGAL {
template < class OutputIterator, class Point_generator, class Traits >
OutputIterator
random_convex_set_2( int n,
random_convex_set_2( std::size_t n,
OutputIterator o,
const Point_generator& pg,
Traits t)

View File

@ -41,7 +41,7 @@ namespace CGAL {
// generated with uniform probability.
//
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)
{
typedef typename Traits::Point_2 Point_2;
@ -67,7 +67,7 @@ OutputIterator random_polygon_2(int n, OutputIterator result,
template <class PointGenerator, class OutputIterator>
inline
OutputIterator random_polygon_2( int n, OutputIterator result,
OutputIterator random_polygon_2( std::size_t n, OutputIterator result,
const PointGenerator& pg )
{
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;
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)
{