Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

stl_relops.h

Go to the documentation of this file.
00001 /*
00002  *
00003  * Copyright (c) 1994
00004  * Hewlett-Packard Company
00005  *
00006  * Permission to use, copy, modify, distribute and sell this software
00007  * and its documentation for any purpose is hereby granted without fee,
00008  * provided that the above copyright notice appear in all copies and
00009  * that both that copyright notice and this permission notice appear
00010  * in supporting documentation.  Hewlett-Packard Company makes no
00011  * representations about the suitability of this software for any
00012  * purpose.  It is provided "as is" without express or implied warranty.
00013  *
00014  * Copyright (c) 1996,1997
00015  * Silicon Graphics
00016  *
00017  * Permission to use, copy, modify, distribute and sell this software
00018  * and its documentation for any purpose is hereby granted without fee,
00019  * provided that the above copyright notice appear in all copies and
00020  * that both that copyright notice and this permission notice appear
00021  * in supporting documentation.  Silicon Graphics makes no
00022  * representations about the suitability of this software for any
00023  * purpose.  It is provided "as is" without express or implied warranty.
00024  *
00025  */
00026 
00027 /* NOTE: This is an internal header file, included by other STL headers.
00028  *   You should not attempt to use it directly.
00029  */
00030 
00031 /**** libstdc++-v3 note:  Inclusion of this file has been removed from
00032  * all of the other STL headers for safety reasons, except std_utility.h.
00033  * For more information, see the thread of about twenty messages starting
00034  * with <URL:http://gcc.gnu.org/ml/libstdc++/2001-01/msg00223.html>, or the
00035  * FAQ at <URL:http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#4_4>.
00036  *
00037  * Short summary:  the rel_ops operators cannot be made to play nice.
00038  * Don't use them.
00039 */
00040 
00041 #ifndef _CPP_BITS_STL_RELOPS_H
00042 #define _CPP_BITS_STL_RELOPS_H 1
00043 
00044 namespace std
00045 {
00046   namespace rel_ops
00047   {
00048 
00049 template <class _Tp>
00050 inline bool operator!=(const _Tp& __x, const _Tp& __y) {
00051   return !(__x == __y);
00052 }
00053 
00054 template <class _Tp>
00055 inline bool operator>(const _Tp& __x, const _Tp& __y) {
00056   return __y < __x;
00057 }
00058 
00059 template <class _Tp>
00060 inline bool operator<=(const _Tp& __x, const _Tp& __y) {
00061   return !(__y < __x);
00062 }
00063 
00064 template <class _Tp>
00065 inline bool operator>=(const _Tp& __x, const _Tp& __y) {
00066   return !(__x < __y);
00067 }
00068 
00069   } // namespace rel_ops
00070 } // namespace std
00071 
00072 #endif /* _CPP_BITS_STL_RELOPS_H */
00073 
00074 // Local Variables:
00075 // mode:C++
00076 // End:

Generated at Tue May 1 16:28:39 2001 for libstdc++-v3 by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001