diff options
Diffstat (limited to 'Rx/v2/src/rxcpp/rx-util.hpp')
-rw-r--r-- | Rx/v2/src/rxcpp/rx-util.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Rx/v2/src/rxcpp/rx-util.hpp b/Rx/v2/src/rxcpp/rx-util.hpp index 97ff73f..d4d5536 100644 --- a/Rx/v2/src/rxcpp/rx-util.hpp +++ b/Rx/v2/src/rxcpp/rx-util.hpp @@ -416,6 +416,15 @@ struct less { return std::forward<LHS>(lhs) < std::forward<RHS>(rhs); } }; +template <class T> +struct ret +{ + template <class LHS> + auto operator()(LHS&& ) const + -> decltype(T()) + { return T(); } +}; + template<class T = void> struct equal_to { |