diff options
Diffstat (limited to 'libstdc++/stl/stl_relops.h')
-rw-r--r-- | libstdc++/stl/stl_relops.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/libstdc++/stl/stl_relops.h b/libstdc++/stl/stl_relops.h index 01a0c7c..16cad1b 100644 --- a/libstdc++/stl/stl_relops.h +++ b/libstdc++/stl/stl_relops.h @@ -33,24 +33,24 @@ __STL_BEGIN_RELOPS_NAMESPACE -template <class T> -inline bool operator!=(const T& x, const T& y) { - return !(x == y); +template <class _Tp> +inline bool operator!=(const _Tp& __x, const _Tp& __y) { + return !(__x == __y); } -template <class T> -inline bool operator>(const T& x, const T& y) { - return y < x; +template <class _Tp> +inline bool operator>(const _Tp& __x, const _Tp& __y) { + return __y < __x; } -template <class T> -inline bool operator<=(const T& x, const T& y) { - return !(y < x); +template <class _Tp> +inline bool operator<=(const _Tp& __x, const _Tp& __y) { + return !(__y < __x); } -template <class T> -inline bool operator>=(const T& x, const T& y) { - return !(x < y); +template <class _Tp> +inline bool operator>=(const _Tp& __x, const _Tp& __y) { + return !(__x < __y); } __STL_END_RELOPS_NAMESPACE |