diff options
author | Lioncash <mathew1800@gmail.com> | 2022-10-18 18:54:53 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2022-10-18 22:06:46 +0200 |
commit | 5000d814afeefd7eb7f250888b76d6723790f762 (patch) | |
tree | 116a8a0a087c14e8131e7d4b9dbe740ff4e65d5f /src/common/concepts.h | |
parent | Merge pull request #9054 from Docteh/just_lz4 (diff) | |
download | yuzu-5000d814afeefd7eb7f250888b76d6723790f762.tar yuzu-5000d814afeefd7eb7f250888b76d6723790f762.tar.gz yuzu-5000d814afeefd7eb7f250888b76d6723790f762.tar.bz2 yuzu-5000d814afeefd7eb7f250888b76d6723790f762.tar.lz yuzu-5000d814afeefd7eb7f250888b76d6723790f762.tar.xz yuzu-5000d814afeefd7eb7f250888b76d6723790f762.tar.zst yuzu-5000d814afeefd7eb7f250888b76d6723790f762.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 |