diff options
author | Jason Merrill <jason@yorick.cygnus.com> | 1998-09-02 17:25:15 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-09-02 13:25:15 -0400 |
commit | df9262681b6bf7e555619c492c5ec9d7fd340ac1 (patch) | |
tree | f1b8986118d98ea46eb8767eba9ca67b12541d4f /libstdc++/stl/stl_relops.h | |
parent | 514a1f18eeb8d9b3da90ae36d5913dfabe8203fd (diff) | |
download | gcc-df9262681b6bf7e555619c492c5ec9d7fd340ac1.zip gcc-df9262681b6bf7e555619c492c5ec9d7fd340ac1.tar.gz gcc-df9262681b6bf7e555619c492c5ec9d7fd340ac1.tar.bz2 |
algorithm [...]: Update to SGI STL 3.11.
* algorithm alloc.h defalloc.h hash_map.h hash_set.h iterator
memory pthread_alloc pthread_alloc.h rope ropeimpl.h stl_algo.h
stl_algobase.h stl_alloc.h stl_bvector.h stl_config.h
stl_construct.h stl_deque.h stl_function.h stl_hash_fun.h
stl_hash_map.h stl_hash_set.h stl_hashtable.h stl_heap.h
stl_iterator.h stl_list.h stl_map.h stl_multimap.h stl_multiset.h
stl_numeric.h stl_pair.h stl_queue.h stl_raw_storage_iter.h
stl_relops.h stl_rope.h stl_set.h stl_slist.h stl_stack.h
stl_tempbuf.h stl_tree.h stl_uninitialized.h stl_vector.h
tempbuf.h type_traits.h: Update to SGI STL 3.11.
From-SVN: r22190
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 |