Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
_relops.h
Go to the documentation of this file.
1// -*- C++ -*-
2
43#ifndef _RWSTD_RW_RELOPS_H_INCLUDED
44#define _RWSTD_RW_RELOPS_H_INCLUDED
45
46#ifndef _RWSTD_RW_DEFS_H_INCLUDED
47# include <rw/_defs.h>
48#endif // _RWSTD_RW_DEFS_H_INCLUDED
49
50
52
53
54#ifndef _RWSTD_NO_NAMESPACE
55
56// rel_ops contents not available if namespaces are disabled
57// to avoid ambiguities with other overloaded operators
58
59_RWSTD_NAMESPACE (rel_ops) {
60
61
62template <class _TypeT>
63inline bool operator!= (const _TypeT& __x, const _TypeT& __y)
64{
65 return !(__x == __y);
66}
67
68template <class _TypeT>
69inline bool operator> (const _TypeT& __x, const _TypeT& __y)
70{
71 return __y < __x;
72}
73
74template <class _TypeT>
75inline bool operator<= (const _TypeT& __x, const _TypeT& __y)
76{
77 return !(__y < __x);
78}
79
80template <class _TypeT>
81inline bool operator>= (const _TypeT& __x, const _TypeT& __y)
82{
83 return !(__x < __y);
84}
85
86
87} // namespace rel_ops
88
89
90#endif // _RWSTD_NO_NAMESPACE
91
92} // namespace std
93
94
95#endif // _RWSTD_RW_RELOPS_H_INCLUDED
#define _RWSTD_NAMESPACE(name)
Definition _defs.h:567
bool operator>(const DistancePair &lhs, const DistancePair &rhs)
Definition graph.cpp:47
bool operator!=(const json_pointer< RefStringTypeLhs > &lhs, const json_pointer< RefStringTypeRhs > &rhs) noexcept
Definition json.h:14762
Definition json.h:5363