Skip to content

Commit

Permalink
Added Union type that is a wrapper for std::variant.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolftein committed May 28, 2024
1 parent d64c810 commit 76c3e2e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/Public/Core/Types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <string>
#include <string_view>
#include <unordered_map>
#include <variant>

#include <EASTL/span.h>
#include <EASTL/fixed_vector.h>
Expand All @@ -33,6 +34,10 @@ inline namespace Core
// -=(Undocumented)=-
using Any = std::any;

// -=(Undocumented)=-
template<class... Types>
using Union = std::variant<Types...>;

// -=(Undocumented)=-
using Bool = bool;

Expand Down

0 comments on commit 76c3e2e

Please sign in to comment.