Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4680 right-hear 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
/**** libstdc++-v3 note:  Inclusion of this file has been removed from
32
 * all of the other STL headers for safety reasons, except std_utility.h.
33
 * For more information, see the thread of about twenty messages starting
34
 * with , or the
35
 * FAQ at .
36
 *
37
 * Short summary:  the rel_ops operators cannot be made to play nice.
38
 * Don't use them.
39
*/
40
 
41
#ifndef _CPP_BITS_STL_RELOPS_H
42
#define _CPP_BITS_STL_RELOPS_H 1
43
 
44
namespace std
45
{
46
  namespace rel_ops
47
  {
48
 
49
template 
50
inline bool operator!=(const _Tp& __x, const _Tp& __y) {
51
  return !(__x == __y);
52
}
53
 
54
template 
55
inline bool operator>(const _Tp& __x, const _Tp& __y) {
56
  return __y < __x;
57
}
58
 
59
template 
60
inline bool operator<=(const _Tp& __x, const _Tp& __y) {
61
  return !(__y < __x);
62
}
63
 
64
template 
65
inline bool operator>=(const _Tp& __x, const _Tp& __y) {
66
  return !(__x < __y);
67
}
68
 
69
  } // namespace rel_ops
70
} // namespace std
71
 
72
#endif /* _CPP_BITS_STL_RELOPS_H */
73
 
74
// Local Variables:
75
// mode:C++
76
// End: