summaryrefslogtreecommitdiffstats
path: root/src/core/math/concepts.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/math/concepts.hh')
-rw-r--r--src/core/math/concepts.hh11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/math/concepts.hh b/src/core/math/concepts.hh
new file mode 100644
index 0000000..6ad5cb7
--- /dev/null
+++ b/src/core/math/concepts.hh
@@ -0,0 +1,11 @@
+#pragma once
+
+namespace math
+{
+template<typename type>
+concept arithmetic = std::is_arithmetic_v<type>;
+template<typename type>
+concept signed_arithmetic = std::is_arithmetic_v<type> && std::is_signed_v<type>;
+template<typename type>
+concept unsigned_arithmetic = std::is_arithmetic_v<type> && std::is_unsigned_v<type>;
+} // namespace math