btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / cpp / stl_relops.h
blob16cad1b84e20feed343226f3c00e5b028ba462d1
1 /*
3 * Copyright (c) 1994
4 * Hewlett-Packard Company
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.
14 * Copyright (c) 1996,1997
15 * Silicon Graphics
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.
27 /* NOTE: This is an internal header file, included by other STL headers.
28 * You should not attempt to use it directly.
31 #ifndef __SGI_STL_INTERNAL_RELOPS
32 #define __SGI_STL_INTERNAL_RELOPS
34 __STL_BEGIN_RELOPS_NAMESPACE
36 template <class _Tp>
37 inline bool operator!=(const _Tp& __x, const _Tp& __y) {
38 return !(__x == __y);
41 template <class _Tp>
42 inline bool operator>(const _Tp& __x, const _Tp& __y) {
43 return __y < __x;
46 template <class _Tp>
47 inline bool operator<=(const _Tp& __x, const _Tp& __y) {
48 return !(__y < __x);
51 template <class _Tp>
52 inline bool operator>=(const _Tp& __x, const _Tp& __y) {
53 return !(__x < __y);
56 __STL_END_RELOPS_NAMESPACE
58 #endif /* __SGI_STL_INTERNAL_RELOPS */
60 // Local Variables:
61 // mode:C++
62 // End: