diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-10-20 01:00:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-20 01:00:59 +0200 |
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 yuzu-7daf751b8d3ff0b87c3ac8110c590eda709229bc.tar.gz yuzu-7daf751b8d3ff0b87c3ac8110c590eda709229bc.tar.bz2 yuzu-7daf751b8d3ff0b87c3ac8110c590eda709229bc.tar.lz yuzu-7daf751b8d3ff0b87c3ac8110c590eda709229bc.tar.xz yuzu-7daf751b8d3ff0b87c3ac8110c590eda709229bc.tar.zst yuzu-7daf751b8d3ff0b87c3ac8110c590eda709229bc.zip |
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 { template <typename From, typename To> concept ConvertibleTo = std::is_convertible_v<From, To>; +// No equivalents in the stdlib + +template <typename T> +concept IsArithmetic = std::is_arithmetic_v<T>; + +template <typename T> +concept IsIntegral = std::is_integral_v<T>; + } // namespace Common |