mirror of https://github.com/CGAL/cgal
hash function for integers
This commit is contained in:
parent
8c456d1e32
commit
cb1b03f4d8
|
|
@ -258,6 +258,7 @@ Arrangement_2/doc_tex/Sweep_line_2/sl_simple.ps -text
|
|||
Arrangement_2/examples/Arrangement_2/ex_dual_lines.C -text
|
||||
Arrangement_2/examples/Arrangement_2/ex_unbounded_non_intersecting.C -text
|
||||
Arrangement_2/examples/Arrangement_2/points.dat -text
|
||||
Arrangement_2/include/CGAL/Sweep_line_2/Integer_hash_function.h eol=lf
|
||||
Arrangement_of_spheres_3/include/CGAL/Arrangement_of_spheres_3/Sphere_key.h -text
|
||||
Arrangement_of_spheres_3/include/CGAL/Tools/Coordinate_index.h -text
|
||||
Arrangement_of_spheres_3/src/CGAL/Arrangement_of_spheres_traits_3.C -text
|
||||
|
|
|
|||
|
|
@ -0,0 +1,40 @@
|
|||
// Copyright (c) 1997 Tel-Aviv University (Israel).
|
||||
// All rights reserved.
|
||||
//
|
||||
// This file is part of CGAL (www.cgal.org); you may redistribute it under
|
||||
// the terms of the Q Public License version 1.0.
|
||||
// See the file LICENSE.QPL distributed with CGAL.
|
||||
//
|
||||
// Licensees holding a valid commercial license may use this file in
|
||||
// accordance with the commercial license agreement provided with the software.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
//
|
||||
// $URL$
|
||||
// $Id$
|
||||
//
|
||||
//
|
||||
// Author(s) : Baruch Zukerman <baruchzu@post.tau.ac.il>
|
||||
|
||||
#ifndef CGAL_INTEGER_HASH_FUNCTION
|
||||
#define CGAL_INTEGER_HASH_FUNCTION
|
||||
|
||||
#include <CGAL/basic.h>
|
||||
#include <cstddef>
|
||||
|
||||
CGAL_BEGIN_NAMESPACE
|
||||
|
||||
struct Integer_hash_function
|
||||
{
|
||||
typedef std::size_t result_type;
|
||||
|
||||
std::size_t operator() (unsigned int i) const
|
||||
{
|
||||
return i;
|
||||
}
|
||||
};
|
||||
|
||||
CGAL_END_NAMESPACE
|
||||
|
||||
#endif
|
||||
Loading…
Reference in New Issue