\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)

CGAL 4.8 - Profiling tools, Hash Map, Union-find, Modifiers

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
List of all members
UniqueHashFunction Concept Reference
Concepts

## Definition

`UniqueHashFunction` is a concept for a hash function with unique hash values. An instance `hash` for a model of the `UniqueHashFunction` concept is a function object. It maps objects of its domain type `Key` to the integral image type `std::size_t`. The image values have to be unique for all keys in the domain type `Key`.

Has Models:
  `CGAL::Handle_hash_function`

See Also
  `CGAL::Unique_hash_map<Key,Data,UniqueHashFunction>`

## Types
typedef std::size_t | result_type
| type of the hash value.

## Creation
| UniqueHashFunction (const UniqueHashFunction &hash2)
| copy constructor.
UniqueHashFunction & | operator= (const UniqueHashFunction &hash2)
| assignment.

## Operations
std::size_t | operator() (const Key &key)
| returns a unique hash value for the `key` value.