summaryrefslogtreecommitdiff
path: root/Rx/v2/src/rxcpp/rx-util.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'Rx/v2/src/rxcpp/rx-util.hpp')
-rw-r--r--Rx/v2/src/rxcpp/rx-util.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Rx/v2/src/rxcpp/rx-util.hpp b/Rx/v2/src/rxcpp/rx-util.hpp
index 3ddc0b9..0e09301 100644
--- a/Rx/v2/src/rxcpp/rx-util.hpp
+++ b/Rx/v2/src/rxcpp/rx-util.hpp
@@ -780,6 +780,17 @@ namespace detail {
template <class T, class Decayed = decay_t<T>>
struct is_duration : detail::is_duration<Decayed> {};
+
+// C++17 negation
+namespace detail {
+ template<class T>
+ struct not_value : std::conditional<T::value, std::false_type, std::true_type>::type {
+ };
+}
+
+template <class T>
+struct negation : detail::not_value<T> {};
+
}
namespace rxu=util;