/* * Created by Brett on 31/03/23. * Licensed under GNU General Public License V3.0 * See LICENSE file for license detail */ #ifndef BLT_HASH_MAP_H #define BLT_HASH_MAP_H #ifndef HASHMAP #if defined __has_include && __has_include() #include #include template, class Eq = phmap::priv::hash_default_eq, class Alloc = phmap::priv::Allocator>> using HASHMAP = phmap::flat_hash_map; template, class Eq = phmap::priv::hash_default_eq, class Alloc = phmap::priv::Allocator> using HASHSET = phmap::flat_hash_set; #else #include #include template, typename Eq = std::equal_to, typename Alloc = std::allocator>> using HASHMAP = std::unordered_map; template, typename Eq = std::equal_to, typename Alloc = std::allocator> using HASHSET = std::unordered_set; #endif #endif #endif //BLT_HASH_MAP_H