aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/debug/functions.h
diff options
context:
space:
mode:
authorFrançois Dumont <fdumont@gcc.gnu.org>2015-08-25 20:22:47 +0000
committerFrançois Dumont <fdumont@gcc.gnu.org>2015-08-25 20:22:47 +0000
commit25c65938c8794115531d09a37e17d3bc469f6269 (patch)
tree7c25723be55ff12a9a21251046c38733e1f1587b /libstdc++-v3/include/debug/functions.h
parent2f40eaca146906d75e95630f7bb3e5a27c3a5613 (diff)
downloadgcc-25c65938c8794115531d09a37e17d3bc469f6269.zip
gcc-25c65938c8794115531d09a37e17d3bc469f6269.tar.gz
gcc-25c65938c8794115531d09a37e17d3bc469f6269.tar.bz2
Revert my change to commit with PR reference again.
From-SVN: r227187
Diffstat (limited to 'libstdc++-v3/include/debug/functions.h')
-rw-r--r--libstdc++-v3/include/debug/functions.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/libstdc++-v3/include/debug/functions.h b/libstdc++-v3/include/debug/functions.h
index 218092a..a9f234b 100644
--- a/libstdc++-v3/include/debug/functions.h
+++ b/libstdc++-v3/include/debug/functions.h
@@ -445,49 +445,6 @@ namespace __gnu_debug
return __first == __last;
}
-#if __cplusplus >= 201103L
- struct _Irreflexive_checker
- {
- template<typename _It>
- static typename std::iterator_traits<_It>::reference
- __deref();
-
- template<typename _It,
- typename = decltype(__deref<_It>() < __deref<_It>())>
- static bool
- _S_is_valid(_It __it)
- { return !(*__it < *__it); }
-
- // Fallback method if operator doesn't exist.
- template<typename... _Args>
- static bool
- _S_is_valid(_Args...)
- { return true; }
-
- template<typename _It, typename _Pred, typename
- = decltype(std::declval<_Pred>()(__deref<_It>(), __deref<_It>()))>
- static bool
- _S_is_valid_pred(_It __it, _Pred __pred)
- { return !__pred(*__it, *__it); }
-
- // Fallback method if predicate can't be invoked.
- template<typename... _Args>
- static bool
- _S_is_valid_pred(_Args...)
- { return true; }
- };
-
- template<typename _Iterator>
- inline bool
- __is_irreflexive(_Iterator __it)
- { return _Irreflexive_checker::_S_is_valid(__it); }
-
- template<typename _Iterator, typename _Pred>
- inline bool
- __is_irreflexive_pred(_Iterator __it, _Pred __pred)
- { return _Irreflexive_checker::_S_is_valid_pred(__it, __pred); }
-#endif
-
} // namespace __gnu_debug
#endif