diff options
author | Grigoriy Chudnov <g.chudnov@gmail.com> | 2016-12-17 21:39:39 +0300 |
---|---|---|
committer | Kirk Shoop <kirk.shoop@microsoft.com> | 2016-12-17 10:39:39 -0800 |
commit | fa9428c65f09f76024f0f2acfb819f22f0875320 (patch) | |
tree | 87b965c6e028320e597f106a06dac0eae7253773 /Rx/v2/src/rxcpp/rx-util.hpp | |
parent | a5c54e7008395c86fb34a5544faf40405255a8fc (diff) | |
download | RxCpp-fa9428c65f09f76024f0f2acfb819f22f0875320.tar.gz |
decouple sequence_equal from observable (#295)
* decouple sequence_equal from observable
* refactoring to fix msvc2013
Diffstat (limited to 'Rx/v2/src/rxcpp/rx-util.hpp')
-rw-r--r-- | Rx/v2/src/rxcpp/rx-util.hpp | 11 |
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; |