-
-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3cf0474
commit 6306bda
Showing
5 changed files
with
8 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
#pragma once | ||
// XXX: upgrade std hash structures | ||
#ifndef _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS | ||
#define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS | ||
#endif | ||
#include <hash_map> | ||
#include <unordered_map> | ||
#include "xrCore/Memory/XRayAllocator.hpp" | ||
|
||
template <typename K, class V, class _Traits = stdext::hash_compare<K, std::less<K>>, typename allocator = XRay::xray_allocator<std::pair<K, V>>> | ||
using xr_hash_map = stdext::hash_map<K, V, _Traits, allocator>; | ||
|
||
template<class Key, class T, class Hasher = std::hash<Key>, class KeyEqual = std::equal_to<Key>, class allocator = XRay::xray_allocator<std::pair<const Key, T>>> | ||
template <class Key, class T, class Hasher = std::hash<Key>, class KeyEqual = std::equal_to<Key>, | ||
class allocator = XRay::xray_allocator<std::pair<const Key, T>>> | ||
using xr_unordered_map = std::unordered_map<Key, T, Hasher, KeyEqual, allocator>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters