From b5fc92b5377e3effe4410348f4199316b88fba7f Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 20 Jan 2015 16:55:07 +0100 Subject: Added basic boolean logic operations --- src/operation/logic.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/operation/logic.h (limited to 'src/operation') diff --git a/src/operation/logic.h b/src/operation/logic.h new file mode 100644 index 0000000..23393b2 --- /dev/null +++ b/src/operation/logic.h @@ -0,0 +1,28 @@ +#ifndef TYPEASVALUE_SRC_OPERATION_LOGIC_H_ +#define TYPEASVALUE_SRC_OPERATION_LOGIC_H_ + +#include "type.h" + +namespace tav { + +template < + typename X, + typename Y +> +using And = Boolean; + +template < + typename X, + typename Y +> +using Or = Boolean; + +template < + typename X, + typename Y +> +using Xor = Boolean; + +} + +#endif // TYPEASVALUE_SRC_OPERATION_LOGIC_H_ -- cgit v1.2.3