diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-10-19 19:00:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-19 19:00:59 -0400 |
commit | 7daf751b8d3ff0b87c3ac8110c590eda709229bc (patch) | |
tree | 771963aea89f28b1decbf372ad75c0b40fd9acb4 /src/common/concepts.h | |
parent | 5ffb8b803949cf70d0e2c4d9e5865ae52158eec2 (diff) | |
parent | 6e1c6297a3f8fcd243ec6b31d3832d84c7df474c (diff) |
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 { 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 |