Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
HashKey< T > Class Template Reference

#include <elm/hash.h>

+ Inheritance diagram for HashKey< T >:

Public Member Functions

t::hash computeHash (const T &key) const
 
bool isEqual (const T &key1, const T &key2) const
 

Static Public Member Functions

static t::hash hash (const T &key)
 
static bool equals (const T &key1, const T &key2)
 

Detailed Description

template<class T>
class elm::HashKey< T >

This is the default implementation of the Hash concept in ELM. It provides a generic Jenkins hash function but provides also easier or more adapted hash functions for current types like integers, void pointer or strings.

Refer to concept::Hash concept for more details.

Member Function Documentation

◆ computeHash()

t::hash computeHash ( const T &  key) const
inline

◆ equals()

◆ hash()

◆ isEqual()

bool isEqual ( const T &  key1,
const T &  key2 
) const
inline

The documentation for this class was generated from the following file: