diff options
| author | 2022-10-19 19:00:59 -0400 | |
|---|---|---|
| committer | 2022-10-19 19:00:59 -0400 | |
| commit | 7daf751b8d3ff0b87c3ac8110c590eda709229bc (patch) | |
| tree | 771963aea89f28b1decbf372ad75c0b40fd9acb4 /src/common/concepts.h | |
| parent | Merge pull request #9082 from Morph1984/future (diff) | |
| parent | fixed_point: Mark default constructor as constexpr (diff) | |
| download | yuzu-7daf751b8d3ff0b87c3ac8110c590eda709229bc.tar.gz yuzu-7daf751b8d3ff0b87c3ac8110c590eda709229bc.tar.xz yuzu-7daf751b8d3ff0b87c3ac8110c590eda709229bc.zip | |
Merge pull request #9094 from lioncash/fixed
common/fixed_point: Minor interface improvements
Diffstat (limited to 'src/common/concepts.h')
| -rw-r--r-- | src/common/concepts.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/concepts.h b/src/common/concepts.h index a97555f6a..e8ce30dfe 100644 --- a/src/common/concepts.h +++ b/src/common/concepts.h | |||
| @@ -34,4 +34,12 @@ concept DerivedFrom = requires { | |||
| 34 | template <typename From, typename To> | 34 | template <typename From, typename To> |
| 35 | concept ConvertibleTo = std::is_convertible_v<From, To>; | 35 | concept ConvertibleTo = std::is_convertible_v<From, To>; |
| 36 | 36 | ||
| 37 | // No equivalents in the stdlib | ||
| 38 | |||
| 39 | template <typename T> | ||
| 40 | concept IsArithmetic = std::is_arithmetic_v<T>; | ||
| 41 | |||
| 42 | template <typename T> | ||
| 43 | concept IsIntegral = std::is_integral_v<T>; | ||
| 44 | |||
| 37 | } // namespace Common | 45 | } // namespace Common |