AutoPas  3.0.0
Loading...
Searching...
No Matches
TrivialHash.h
Go to the documentation of this file.
1
7#pragma once
8
9// for std::size_t
10#include <cstddef>
11
12namespace autopas {
13
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
This is the main namespace of AutoPas.
Definition: AutoPasDecl.h:32
Trivial hash for enums.
Definition: TrivialHash.h:17
std::size_t operator()(T t) const
Trivial hash function.
Definition: TrivialHash.h:25