kakoune/src/unordered_map.hh

24 lines
696 B
C++
Raw Normal View History

#ifndef unordered_map_hh_INCLUDED
#define unordered_map_hh_INCLUDED
#include "hash.hh"
#include "memory.hh"
#include <unordered_map>
#include <unordered_set>
namespace Kakoune
{
2015-01-21 14:35:23 +01:00
template<typename Key, typename Value, MemoryDomain domain = TypeDomain<Key>::domain()>
using UnorderedMap = std::unordered_map<Key, Value, Hash<Key>, std::equal_to<Key>,
Allocator<std::pair<const Key, Value>, domain>>;
template<typename Key, MemoryDomain domain = TypeDomain<Key>::domain()>
using UnorderedSet = std::unordered_set<Key, Hash<Key>, std::equal_to<Key>,
2015-04-17 00:46:26 +02:00
Allocator<Key, domain>>;
}
#endif // unordered_map_hh_INCLUDED