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

29 lines
613 B
C++

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: auBST.hpp
Date: 2022-2-1
Author: Reece
***/
#pragma once
#if !defined(AURORA_RUNTIME_AU_BST)
#define AURORA_RUNTIME_AU_BST std::map
#endif
#include "auHashUtils.hpp"
template <class T, typename Z, typename LessThan_t = AuHash::less<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;