-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from BMagnu/modular_weapon_curves
Modular Curve Framework
- Loading branch information
Showing
13 changed files
with
648 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#pragma once | ||
|
||
#include <optional> | ||
#include <tl/optional.hpp> | ||
|
||
template <typename T> struct is_optional : std::false_type {}; | ||
template<typename T> struct is_optional<std::optional<T>> : std::true_type {}; | ||
template<> struct is_optional<std::nullopt_t> : std::true_type {}; | ||
template<typename T> struct is_optional<tl::optional<T>> : std::true_type {}; | ||
template<> struct is_optional<tl::nullopt_t> : std::true_type {}; | ||
|
||
template<typename T> | ||
inline constexpr bool is_optional_v = is_optional<T>::value; | ||
|
||
template <typename T> struct is_tuple : std::false_type {}; | ||
template <typename... U> struct is_tuple<std::tuple <U...>> : std::true_type {}; | ||
|
||
template<typename T> | ||
inline constexpr bool is_tuple_v = is_tuple<T>::value; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.