diff options
Diffstat (limited to 'src/operation.h')
-rw-r--r-- | src/operation.h | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/operation.h b/src/operation.h deleted file mode 100644 index 2f3b747..0000000 --- a/src/operation.h +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef TYPEASVALUE_SRC_OPERATION_H_ -#define TYPEASVALUE_SRC_OPERATION_H_ - -#include "type.h" - -namespace tav { - -template < - typename X, - typename Y -> -struct add { - typedef std::integral_constant< - decltype(X::value + Y::value), - X::value + Y::value - > type; -}; - -template < - typename X, - typename Y -> -struct substract { - typedef std::integral_constant< - decltype(X::value - Y::value), - X::value - Y::value - > type; -}; - -template < - typename X, - typename Y -> -struct multiply { - typedef std::integral_constant< - decltype(X::value * Y::value), - X::value * Y::value - > type; -}; - -template < - typename X, - typename Y -> -struct divide { - typedef std::integral_constant< - decltype(X::value / Y::value), - X::value / Y::value - > type; -}; - -} - -#endif // TYPEASVALUE_SRC_OPERATION_H_ |