#include </home/casse/Dev/elm/src/concepts.h>
template<class T>
class elm::concept::Hash< T >
This concept must be implemented by interface to hashable objects.
- Parameters
-
T | Type of hashable objects. |
- Implemented by:
-
- Used by:
-
◆ computeHash()
Compute the hash value of the given object.
- Parameters
-
- Returns
- Hash value.
◆ equals()
static bool equals |
( |
const T & |
object1, |
|
|
const T & |
object2 |
|
) |
| |
|
static |
Test if two hashable objects are equal.
- Parameters
-
object1 | First object to compare. |
object2 | Second object to compare. |
- Returns
- True if both objects are equal, false else.
- Deprecated:
- Non-static version of this method is preferred now.
◆ hash()
Compute the hash value of the given object.
- Parameters
-
- Returns
- Hash value.
- Deprecated:
- Non-static version of this method is preferred now.
◆ isEqual()
bool isEqual |
( |
const T & |
object1, |
|
|
const T & |
object2 |
|
) |
| |
Test if two hashable objects are equal.
- Parameters
-
object1 | First object to compare. |
object2 | Second object to compare. |
- Returns
- True if both objects are equal, false else.
- Deprecated:
- Non-static version of this method is preferred now.
The documentation for this class was generated from the following file: