1*f2ced752SOliver Tappe /* 2*f2ced752SOliver Tappe * 3*f2ced752SOliver Tappe * Copyright (c) 1994 4*f2ced752SOliver Tappe * Hewlett-Packard Company 5*f2ced752SOliver Tappe * 6*f2ced752SOliver Tappe * Permission to use, copy, modify, distribute and sell this software 7*f2ced752SOliver Tappe * and its documentation for any purpose is hereby granted without fee, 8*f2ced752SOliver Tappe * provided that the above copyright notice appear in all copies and 9*f2ced752SOliver Tappe * that both that copyright notice and this permission notice appear 10*f2ced752SOliver Tappe * in supporting documentation. Hewlett-Packard Company makes no 11*f2ced752SOliver Tappe * representations about the suitability of this software for any 12*f2ced752SOliver Tappe * purpose. It is provided "as is" without express or implied warranty. 13*f2ced752SOliver Tappe * 14*f2ced752SOliver Tappe * Copyright (c) 1996,1997 15*f2ced752SOliver Tappe * Silicon Graphics 16*f2ced752SOliver Tappe * 17*f2ced752SOliver Tappe * Permission to use, copy, modify, distribute and sell this software 18*f2ced752SOliver Tappe * and its documentation for any purpose is hereby granted without fee, 19*f2ced752SOliver Tappe * provided that the above copyright notice appear in all copies and 20*f2ced752SOliver Tappe * that both that copyright notice and this permission notice appear 21*f2ced752SOliver Tappe * in supporting documentation. Silicon Graphics makes no 22*f2ced752SOliver Tappe * representations about the suitability of this software for any 23*f2ced752SOliver Tappe * purpose. It is provided "as is" without express or implied warranty. 24*f2ced752SOliver Tappe * 25*f2ced752SOliver Tappe */ 26*f2ced752SOliver Tappe 27*f2ced752SOliver Tappe /* NOTE: This is an internal header file, included by other STL headers. 28*f2ced752SOliver Tappe * You should not attempt to use it directly. 29*f2ced752SOliver Tappe */ 30*f2ced752SOliver Tappe 31*f2ced752SOliver Tappe #ifndef __SGI_STL_INTERNAL_RELOPS 32*f2ced752SOliver Tappe #define __SGI_STL_INTERNAL_RELOPS 33*f2ced752SOliver Tappe 34*f2ced752SOliver Tappe __STL_BEGIN_RELOPS_NAMESPACE 35*f2ced752SOliver Tappe 36*f2ced752SOliver Tappe template <class _Tp> 37*f2ced752SOliver Tappe inline bool operator!=(const _Tp& __x, const _Tp& __y) { 38*f2ced752SOliver Tappe return !(__x == __y); 39*f2ced752SOliver Tappe } 40*f2ced752SOliver Tappe 41*f2ced752SOliver Tappe template <class _Tp> 42*f2ced752SOliver Tappe inline bool operator>(const _Tp& __x, const _Tp& __y) { 43*f2ced752SOliver Tappe return __y < __x; 44*f2ced752SOliver Tappe } 45*f2ced752SOliver Tappe 46*f2ced752SOliver Tappe template <class _Tp> 47*f2ced752SOliver Tappe inline bool operator<=(const _Tp& __x, const _Tp& __y) { 48*f2ced752SOliver Tappe return !(__y < __x); 49*f2ced752SOliver Tappe } 50*f2ced752SOliver Tappe 51*f2ced752SOliver Tappe template <class _Tp> 52*f2ced752SOliver Tappe inline bool operator>=(const _Tp& __x, const _Tp& __y) { 53*f2ced752SOliver Tappe return !(__x < __y); 54*f2ced752SOliver Tappe } 55*f2ced752SOliver Tappe 56*f2ced752SOliver Tappe __STL_END_RELOPS_NAMESPACE 57*f2ced752SOliver Tappe 58*f2ced752SOliver Tappe #endif /* __SGI_STL_INTERNAL_RELOPS */ 59*f2ced752SOliver Tappe 60*f2ced752SOliver Tappe // Local Variables: 61*f2ced752SOliver Tappe // mode:C++ 62*f2ced752SOliver Tappe // End: 63