Version:
3.0.0
Loading...
Searching...
No Matches
autopas
utils
TrivialHash.h
Go to the documentation of this file.
1
7
#pragma once
8
9
// for std::size_t
10
#include <cstddef>
11
12
namespace
autopas
{
13
17
struct
TrivialHash
{
24
template
<
typename
T>
25
std::size_t
operator()
(T t)
const
{
26
return
static_cast<
std::size_t
>
(t);
27
}
28
};
29
30
}
// namespace autopas
autopas
This is the main namespace of AutoPas.
Definition:
AutoPasDecl.h:32
autopas::TrivialHash
Trivial hash for enums.
Definition:
TrivialHash.h:17
autopas::TrivialHash::operator()
std::size_t operator()(T t) const
Trivial hash function.
Definition:
TrivialHash.h:25
Generated by
1.9.7