File indexing completed on 2026-05-03 08:13:45
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef _LIBCPP___CXX03___UTILITY_REL_OPS_H
0010 #define _LIBCPP___CXX03___UTILITY_REL_OPS_H
0011
0012 #include <__cxx03/__config>
0013
0014 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0015 # pragma GCC system_header
0016 #endif
0017
0018 _LIBCPP_BEGIN_NAMESPACE_STD
0019
0020 namespace rel_ops {
0021
0022 template <class _Tp>
0023 inline _LIBCPP_DEPRECATED_IN_CXX20 _LIBCPP_HIDE_FROM_ABI bool operator!=(const _Tp& __x, const _Tp& __y) {
0024 return !(__x == __y);
0025 }
0026
0027 template <class _Tp>
0028 inline _LIBCPP_DEPRECATED_IN_CXX20 _LIBCPP_HIDE_FROM_ABI bool operator>(const _Tp& __x, const _Tp& __y) {
0029 return __y < __x;
0030 }
0031
0032 template <class _Tp>
0033 inline _LIBCPP_DEPRECATED_IN_CXX20 _LIBCPP_HIDE_FROM_ABI bool operator<=(const _Tp& __x, const _Tp& __y) {
0034 return !(__y < __x);
0035 }
0036
0037 template <class _Tp>
0038 inline _LIBCPP_DEPRECATED_IN_CXX20 _LIBCPP_HIDE_FROM_ABI bool operator>=(const _Tp& __x, const _Tp& __y) {
0039 return !(__x < __y);
0040 }
0041
0042 }
0043
0044 _LIBCPP_END_NAMESPACE_STD
0045
0046 #endif