From 66c26b9bd28c45f2ff2b73e2eba61efee3914216 Mon Sep 17 00:00:00 2001 From: Reece Date: Wed, 29 Sep 2021 09:02:51 +0100 Subject: [PATCH] [+] Added AuArray, AuFunction, AuDelegate, and others --- Include/AuroraTypedefs.hpp | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/Include/AuroraTypedefs.hpp b/Include/AuroraTypedefs.hpp index 71f481a5..78902f7b 100644 --- a/Include/AuroraTypedefs.hpp +++ b/Include/AuroraTypedefs.hpp @@ -23,7 +23,7 @@ #endif #if !defined(AURORA_RUNTIME_AU_LIST) -#define AURORA_RUNTIME_AU_LIST std::vector + #define AURORA_RUNTIME_AU_LIST std::vector #endif #if defined(_CPPSHARP) @@ -44,6 +44,23 @@ using AuList = typename std::conditional::value, AURORA_RUNTIME #endif + +#if !defined(AURORA_RUNTIME_AU_ARRAY) + #define AURORA_RUNTIME_AU_ARRAY std::array +#endif + +template +using AuArray = AURORA_RUNTIME_AU_ARRAY; + + +#if !defined(AURORA_RUNTIME_AU_FUNC) + #define AURORA_RUNTIME_AU_FUNC std::function +#endif + +template +using AuFunction = AURORA_RUNTIME_AU_FUNC; + + #if !defined(AURORA_RUNTIME_AU_HASH_MAP) #define AURORA_RUNTIME_AU_HASH_MAP std::unordered_map #endif @@ -105,6 +122,15 @@ using AuAtomicInt = int; template using AuOptional = AURORA_RUNTIME_AU_OPTIONAL; +template +using AuPredicate = AuFunction; + +template +using AuVoidFunc = AuFunction; + +template +using AuDelegate = AuFunction; + //#include "tinyutf8.h" using AuString = std::string;// tiny_utf8::utf8_string;