From 799c9fed9437fcd7f94c8e48bf80dfb668f87ea1 Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 18 Apr 2015 18:36:06 +0100 Subject: [PATCH] add not1/not2 --- octa/functional.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/octa/functional.h b/octa/functional.h index 03e3b7e..78edbc4 100644 --- a/octa/functional.h +++ b/octa/functional.h @@ -79,6 +79,14 @@ namespace octa { private: T p_fn; }; + + template UnaryNegate not1(const T &fn) { + return UnaryNegate(fn); + } + + template BinaryNegate not2(const T &fn) { + return BinaryNegate(fn); + } } #endif \ No newline at end of file