[+] Added AuArray, AuFunction, AuDelegate, and others
This commit is contained in:
parent
1360e5627d
commit
66c26b9bd2
@ -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<std::is_class<T>::value, AURORA_RUNTIME
|
||||
|
||||
#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)
|
||||
#define AURORA_RUNTIME_AU_HASH_MAP std::unordered_map
|
||||
#endif
|
||||
@ -105,6 +122,15 @@ using AuAtomicInt = int;
|
||||
template<typename 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"
|
||||
|
||||
using AuString = std::string;// tiny_utf8::utf8_string;
|
||||
|
Loading…
Reference in New Issue
Block a user