aboutsummaryrefslogtreecommitdiff
path: root/src/operation/math.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/operation/math.h')
-rw-r--r--src/operation/math.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/operation/math.h b/src/operation/math.h
index b06eb35..0ede3f5 100644
--- a/src/operation/math.h
+++ b/src/operation/math.h
@@ -41,6 +41,9 @@ using Divide = typename std::integral_constant<
X::value / Y::value
>::type;
+template <typename Base>
+using Square = Multiply<Base, Base>;
+
template <typename X>
using Even = Boolean<(X::value % 2 == 0)>;