diff options
author | vng <viktor.govako@gmail.com> | 2018-04-24 13:14:16 +0300 |
---|---|---|
committer | mpimenov <mpimenov@users.noreply.github.com> | 2018-04-24 13:44:37 +0300 |
commit | 0b4939eebd33aaf4a843a1b4f6d4bbe556f57f0a (patch) | |
tree | a6044667a7cefa5b4bc3f17f299f2b8a336cf415 /std | |
parent | ed613249ac81e9a11e9de0223e04e033d11be40d (diff) |
Review fixes.
Diffstat (limited to 'std')
-rw-r--r-- | std/tuple.hpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/std/tuple.hpp b/std/tuple.hpp index b24361c793..9e05d40bc4 100644 --- a/std/tuple.hpp +++ b/std/tuple.hpp @@ -5,42 +5,11 @@ #endif #include <tuple> -#include <type_traits> using std::tuple; using std::make_tuple; using std::get; - -template <size_t I = 0, typename FnT, typename... Tp> -typename std::enable_if<I == sizeof...(Tp), void>::type -for_each_tuple(std::tuple<Tp...> &, FnT &&) -{ -} - -template <size_t I = 0, typename FnT, typename... Tp> -typename std::enable_if<I != sizeof...(Tp), void>::type -for_each_tuple(std::tuple<Tp...> & t, FnT && fn) -{ - fn(I, std::get<I>(t)); - for_each_tuple<I + 1, FnT, Tp...>(t, std::forward<FnT>(fn)); -} - -template <size_t I = 0, typename FnT, typename... Tp> -typename std::enable_if<I == sizeof...(Tp), void>::type -for_each_tuple_const(std::tuple<Tp...> const &, FnT &&) -{ -} - -template <size_t I = 0, typename FnT, typename... Tp> -typename std::enable_if<I != sizeof...(Tp), void>::type -for_each_tuple_const(std::tuple<Tp...> const & t, FnT && fn) -{ - fn(I, std::get<I>(t)); - for_each_tuple_const<I + 1, FnT, Tp...>(t, std::forward<FnT>(fn)); -} - - #ifdef DEBUG_NEW #define new DEBUG_NEW #endif |