[+] AuIsBST
[+] AuIsBST_v [+] AuIsHashMap [+] AuIsHashMap_v
This commit is contained in:
parent
51691fdaca
commit
703df2a515
@ -14,4 +14,16 @@
|
||||
#include "auHashUtils.hpp"
|
||||
|
||||
template <class T, typename Z, typename LessThan_t = AuHash::less<T>>
|
||||
using AuBST = AURORA_RUNTIME_AU_BST<T, Z, LessThan_t>;
|
||||
using AuBST = AURORA_RUNTIME_AU_BST<T, Z, LessThan_t>;
|
||||
|
||||
|
||||
template<typename T>
|
||||
struct AuIsBST : AuFalseType
|
||||
{ };
|
||||
|
||||
template<typename T, typename Z>
|
||||
struct AuIsBST<AuBST<T, Z>> : AuTrueType
|
||||
{ };
|
||||
|
||||
template <class T>
|
||||
inline constexpr bool AuIsBST_v = AuIsBST<T>::type::value;
|
@ -14,4 +14,15 @@
|
||||
#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>;
|
||||
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;
|
Loading…
Reference in New Issue
Block a user