#pragma once #include "Miscellaneous/CoreDefines.h" #include #include NAMESPACE_REDCRAFT_BEGIN NAMESPACE_MODULE_BEGIN(Redcraft) NAMESPACE_MODULE_BEGIN(Utility) #define NORETURN [[noreturn]] #define CARRIES_DEPENDENCY [[carries_dependency]] #define DEPRECATED(Message) [[deprecated(Message)]] #define FALLTHROUGH [[fallthrough]] #define NODISCARD [[nodiscard]] #define MAYBE_UNUSED [[maybe_unused]] #define LIKELY [[likely]] #define UNLIKELY [[unlikely]] #define NO_UNIQUE_ADDRESS [[no_unique_address]] constexpr size_t INDEX_NONE = -1; struct FForceInit { explicit FForceInit() = default; }; struct FNoInit { explicit FNoInit() = default; }; struct FInvalid { explicit FInvalid() = default; }; struct FInPlace { explicit FInPlace() = default; }; inline constexpr FForceInit ForceInit{ }; inline constexpr FNoInit NoInit{ }; inline constexpr FInvalid Invalid{ }; inline constexpr FInPlace InPlace{ }; template struct TInPlaceType { explicit TInPlaceType() = default; }; template struct TInPlaceIndex { explicit TInPlaceIndex() = default; }; template inline constexpr TInPlaceType InPlaceType{ }; template inline constexpr TInPlaceIndex InPlaceIndex{ }; using type_info = NAMESPACE_STD::type_info; template using initializer_list = NAMESPACE_STD::initializer_list; NAMESPACE_MODULE_END(Utility) NAMESPACE_MODULE_END(Redcraft) NAMESPACE_REDCRAFT_END