yfast 0.6.1
Loading...
Searching...
No Matches
default_hash.h
1#ifndef _YFAST_INTERNAL_DEFAULT_HASH_H
2#define _YFAST_INTERNAL_DEFAULT_HASH_H
3
4#ifdef YFAST_WITHOUT_HOPSCOTCH_MAP
5#include <unordered_map>
6#else
7#include <tsl/hopscotch_map.h>
8#endif
9
10namespace yfast::internal {
11
12#ifdef YFAST_WITHOUT_HOPSCOTCH_MAP
13template <typename Key, typename Value>
14using DefaultHash = std::unordered_map<Key, Value>;
15#else
16template <typename Key, typename Value>
17using DefaultHash = tsl::hopscotch_map<Key, Value>;
18#endif
19
20}
21
22#endif