mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 08:34:39 +08:00
make "forward declare" header and edit README
This commit is contained in:
Vendored
+9
@@ -44,6 +44,15 @@ namespace phmap
|
||||
template <class T> T phmap_min(T a, T b) { return a < b ? a : b; }
|
||||
template <class T> T phmap_max(T a, T b) { return a >= b ? a : b; }
|
||||
|
||||
template <class T>
|
||||
struct EqualTo
|
||||
{
|
||||
inline size_t operator()(const T& a, const T& b) const
|
||||
{
|
||||
return std::equal_to<T>()(a, b);
|
||||
}
|
||||
};
|
||||
|
||||
template <class T>
|
||||
struct Hash
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user