#pragma once

#include "HashFunctions.h"
#include "parallel_hashmap/phmap.h"

namespace nCine
{
	// Use `flat_hash_map` from Parallel Hashmap library
	/** @brief Generic hash map */
	template <class K, class V,
#if defined(DEATH_TARGET_32BIT)
		class Hash = xxHash32Func<K>,
#else
		class Hash = xxHash64Func<K>,
#endif
		class Eq = phmap::priv::hash_default_eq<K>>
	using HashMap = phmap::flat_hash_map<K, V, Hash, Eq>;
}

