OSDN Git Service

* algorithm alloc.h defalloc.h hash_map.h hash_set.h iterator
[pf3gnuchains/gcc-fork.git] / libstdc++ / stl / stl_relops.h
index 01a0c7c..16cad1b 100644 (file)
 
 __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