ebecd60eb8
std::hash specialization is a pain to work with, stop using that, and just specialize a 'size_t hash_value(const T&)' free function.
18 lines
280 B
C++
18 lines
280 B
C++
#ifndef unordered_map_hh_INCLUDED
|
|
#define unordered_map_hh_INCLUDED
|
|
|
|
#include "hash.hh"
|
|
|
|
#include <unordered_map>
|
|
|
|
namespace Kakoune
|
|
{
|
|
|
|
template<typename Key, typename Value>
|
|
using UnorderedMap = std::unordered_map<Key, Value, Hash<Key>>;
|
|
|
|
}
|
|
|
|
#endif // unordered_map_hh_INCLUDED
|
|
|