Hash for storing units as keys.
More...
#include <Hashes.h>
|
| std::size_t | operator() (const BWAPI::Unit &unit) const |
Hash for storing units as keys.
Definition at line 8 of file Hashes.h.
◆ operator()()
| std::size_t unitHash::operator() |
( |
const BWAPI::Unit & | unit | ) |
const |
|
inline |
Definition at line 9 of file Hashes.h.
9 {
10 return std::hash<int>{}(unit->getID());
11 }
The documentation for this struct was generated from the following file: