2014-12-16 19:57:19 +01:00
|
|
|
#ifndef unordered_map_hh_INCLUDED
|
|
|
|
#define unordered_map_hh_INCLUDED
|
|
|
|
|
|
|
|
#include "hash.hh"
|
2015-01-07 20:29:31 +01:00
|
|
|
#include "memory.hh"
|
2014-12-16 19:57:19 +01:00
|
|
|
|
|
|
|
#include <unordered_map>
|
2015-04-16 13:38:59 +02:00
|
|
|
#include <unordered_set>
|
2014-12-16 19:57:19 +01:00
|
|
|
|
|
|
|
namespace Kakoune
|
|
|
|
{
|
|
|
|
|
2015-01-21 14:35:23 +01:00
|
|
|
template<typename Key, typename Value, MemoryDomain domain = TypeDomain<Key>::domain()>
|
2015-01-07 20:29:31 +01:00
|
|
|
using UnorderedMap = std::unordered_map<Key, Value, Hash<Key>, std::equal_to<Key>,
|
|
|
|
Allocator<std::pair<const Key, Value>, domain>>;
|
2014-12-16 19:57:19 +01:00
|
|
|
|
2015-04-16 13:38:59 +02:00
|
|
|
template<typename Key, MemoryDomain domain = TypeDomain<Key>::domain()>
|
|
|
|
using UnorderedSet = std::unordered_set<Key, Hash<Key>, std::equal_to<Key>,
|
|
|
|
Allocator<const Key, domain>>;
|
|
|
|
|
2014-12-16 19:57:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // unordered_map_hh_INCLUDED
|