diff options
author | Adrian Kummerlaender | 2021-05-17 00:30:13 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2021-05-17 00:30:13 +0200 |
commit | a92271176a19e06611099c0eccc4e6a6887f4915 (patch) | |
tree | 54067b334bfae7d99c79cfb00da5891334f9514c /src/concepts.h | |
download | SweepLB-a92271176a19e06611099c0eccc4e6a6887f4915.tar SweepLB-a92271176a19e06611099c0eccc4e6a6887f4915.tar.gz SweepLB-a92271176a19e06611099c0eccc4e6a6887f4915.tar.bz2 SweepLB-a92271176a19e06611099c0eccc4e6a6887f4915.tar.lz SweepLB-a92271176a19e06611099c0eccc4e6a6887f4915.tar.xz SweepLB-a92271176a19e06611099c0eccc4e6a6887f4915.tar.zst SweepLB-a92271176a19e06611099c0eccc4e6a6887f4915.zip |
Extract public version of SweepLB
Diffstat (limited to 'src/concepts.h')
-rw-r--r-- | src/concepts.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/concepts.h b/src/concepts.h new file mode 100644 index 0000000..61f7cbf --- /dev/null +++ b/src/concepts.h @@ -0,0 +1,22 @@ +#pragma once + +#include <concepts> + +namespace concepts { + +template <typename V> +concept Arithmetic = requires(V a, V b) { + a + b; + a += b; + + a - b; + a -= b; + + a * b; + a *= b; + + a / b; + a /= b; +}; + +} |