[+] Added AuArray, AuFunction, AuDelegate, and others

This commit is contained in:
Reece Wilson 2021-09-29 09:02:51 +01:00
parent 1360e5627d
commit 66c26b9bd2

View File

@ -23,7 +23,7 @@
#endif #endif
#if !defined(AURORA_RUNTIME_AU_LIST) #if !defined(AURORA_RUNTIME_AU_LIST)
#define AURORA_RUNTIME_AU_LIST std::vector #define AURORA_RUNTIME_AU_LIST std::vector
#endif #endif
#if defined(_CPPSHARP) #if defined(_CPPSHARP)
@ -44,6 +44,23 @@ using AuList = typename std::conditional<std::is_class<T>::value, AURORA_RUNTIME
#endif #endif
#if !defined(AURORA_RUNTIME_AU_ARRAY)
#define AURORA_RUNTIME_AU_ARRAY std::array
#endif
template<typename T, size_t Z>
using AuArray = AURORA_RUNTIME_AU_ARRAY<T, Z>;
#if !defined(AURORA_RUNTIME_AU_FUNC)
#define AURORA_RUNTIME_AU_FUNC std::function
#endif
template<class T>
using AuFunction = AURORA_RUNTIME_AU_FUNC<T>;
#if !defined(AURORA_RUNTIME_AU_HASH_MAP) #if !defined(AURORA_RUNTIME_AU_HASH_MAP)
#define AURORA_RUNTIME_AU_HASH_MAP std::unordered_map #define AURORA_RUNTIME_AU_HASH_MAP std::unordered_map
#endif #endif
@ -105,6 +122,15 @@ using AuAtomicInt = int;
template<typename T> template<typename T>
using AuOptional = AURORA_RUNTIME_AU_OPTIONAL<T>; using AuOptional = AURORA_RUNTIME_AU_OPTIONAL<T>;
template<class T = void>
using AuPredicate = AuFunction<bool(T)>;
template<class T>
using AuVoidFunc = AuFunction<void(void)>;
template<class T>
using AuDelegate = AuFunction<void(T)>;
//#include "tinyutf8.h" //#include "tinyutf8.h"
using AuString = std::string;// tiny_utf8::utf8_string; using AuString = std::string;// tiny_utf8::utf8_string;