AuROXTL/Include/auROXTL/auHashMap.hpp
Reece 703df2a515 [+] AuIsBST
[+] AuIsBST_v
[+] AuIsHashMap
[+] AuIsHashMap_v
2023-03-13 16:59:21 +00:00

28 lines
694 B
C++

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: auHashMap.hpp
Date: 2022-2-1
Author: Reece
***/
#pragma once
#if !defined(AURORA_RUNTIME_AU_HASH_MAP)
#define AURORA_RUNTIME_AU_HASH_MAP std::unordered_map
#endif
#include "auHashUtils.hpp"
template <class T, class Z, class Hash_t = AuHash::hash<T>, class Equal_t = AuHash::equal<T>>
using AuHashMap = AURORA_RUNTIME_AU_HASH_MAP<T, Z, Hash_t, Equal_t>;
template<typename T>
struct AuIsHashMap : AuFalseType
{ };
template<typename T, typename Z>
struct AuIsHashMap<AuHashMap<T, Z>> : AuTrueType
{ };
template <class T>
inline constexpr bool AuIsHashMap_v = AuIsHashMap<T>::type::value;