From 17a62b7627551243419d0a85c611eec7e6581e7b Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 19 Jan 2015 17:23:29 +0100 Subject: Moved `Odd` helper into math operation header * it may be useful for more than test cases --- src/operation/math.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/operation/math.h b/src/operation/math.h index fd6e031..b06eb35 100644 --- a/src/operation/math.h +++ b/src/operation/math.h @@ -41,6 +41,12 @@ using Divide = typename std::integral_constant< X::value / Y::value >::type; +template +using Even = Boolean<(X::value % 2 == 0)>; + +template +using Odd = Boolean::value>; + } #endif // TYPEASVALUE_SRC_OPERATION_MATH_H_ -- cgit v1.2.3