2022-02-23 23:08:28 -05:00
|
|
|
#ifndef WRAP_UNORDERED_SET_HPP
|
|
|
|
|
#define WRAP_UNORDERED_SET_HPP
|
|
|
|
|
|
|
|
|
|
#include "two-mallocs.hpp"
|
|
|
|
|
#include <unordered_set>
|
|
|
|
|
|
|
|
|
|
namespace eng {
|
|
|
|
|
template<class T>
|
|
|
|
|
using hash = std::hash<T>;
|
|
|
|
|
template<class T>
|
|
|
|
|
using equal_to = std::equal_to<T>;
|
|
|
|
|
template<class K, class H=std::hash<K>, class E=std::equal_to<K>>
|
|
|
|
|
using unordered_set = std::unordered_set<K, H, E, EngAllocator<K>>;
|
|
|
|
|
} // namespace eng
|
|
|
|
|
|
|
|
|
|
namespace drv {
|
|
|
|
|
template<class T>
|
|
|
|
|
using hash = std::hash<T>;
|
|
|
|
|
template<class T>
|
|
|
|
|
using equal_to = std::equal_to<T>;
|
|
|
|
|
template<class K, class H=std::hash<K>, class E=std::equal_to<K>>
|
2022-02-24 02:17:41 -05:00
|
|
|
using unordered_set = std::unordered_set<K, H, E, DrvAllocator<K>>;
|
2022-02-23 23:08:28 -05:00
|
|
|
} // namespace drv
|
|
|
|
|
|
|
|
|
|
#endif // WRAP_UNORDERED_SET_HPP
|