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