Home
last modified time | relevance | path

Searched refs:__lhs (Results 1 – 25 of 56) sorted by relevance

123

/freebsd/contrib/llvm-project/libcxx/include/__chrono/
H A Dyear_month_day.h108 …return __lhs.year() == __rhs.year() && __lhs.month() == __rhs.month() && __lhs.day() == __rhs.day(…
121 return year_month_day{__lhs.year(), __lhs.month(), __rhs};
137 return __rhs / __lhs;
146 return (__lhs.year() / __lhs.month() + __rhs) / __lhs.day();
151 return __rhs + __lhs;
161 return (__lhs.year() + __rhs) / __lhs.month() / __lhs.day();
166 return __rhs + __lhs;
258 return __rhs < __lhs;
272 return year_month_day_last{__lhs.year(), month_day_last{__lhs.month()}};
295 return (__lhs.year() / __lhs.month() + __rhs) / last;
[all …]
H A Dyear_month_weekday.h93 return __lhs.year() == __rhs.year() && __lhs.month() == __rhs.month() &&
99 return year_month_weekday{__lhs.year(), __lhs.month(), __rhs};
113 return __rhs / __lhs;
122 return (__lhs.year() / __lhs.month() + __rhs) / __lhs.weekday_indexed();
127 return __rhs + __lhs;
137 return year_month_weekday{__lhs.year() + __rhs, __lhs.month(), __lhs.weekday_indexed()};
142 return __rhs + __lhs;
202 …return __lhs.year() == __rhs.year() && __lhs.month() == __rhs.month() && __lhs.weekday_last() == _…
207 return year_month_weekday_last{__lhs.year(), __lhs.month(), __rhs};
232 return (__lhs.year() / __lhs.month() + __rhs) / __lhs.weekday_last();
[all …]
H A Dmonthday.h61 return __lhs.month() == __rhs.month() && __lhs.day() == __rhs.day();
68 return __lhs.day() <=> __rhs.day();
72 return month_day{__lhs, __rhs};
76 return __rhs / __lhs;
80 return __lhs / day(__rhs);
84 return month(__lhs) / __rhs;
88 return month(__rhs) / __lhs;
103 return __lhs.month() == __rhs.month();
108 return __lhs.month() <=> __rhs.month();
112 return month_day_last{__lhs};
[all …]
H A Dmonth_weekday.h43 return __lhs.month() == __rhs.month() && __lhs.weekday_indexed() == __rhs.weekday_indexed();
48 return month_weekday{__lhs, __rhs};
52 return month_weekday{month(__lhs), __rhs};
57 return month_weekday{__rhs, __lhs};
61 return month_weekday{month(__rhs), __lhs};
79 return __lhs.month() == __rhs.month() && __lhs.weekday_last() == __rhs.weekday_last();
83 operator/(const month& __lhs, const weekday_last& __rhs) noexcept {
84 return month_weekday_last{__lhs, __rhs};
88 return month_weekday_last{month(__lhs), __rhs};
93 return month_weekday_last{__rhs, __lhs};
[all …]
H A Dyear_month.h55 return __lhs.year() == __rhs.year() && __lhs.month() == __rhs.month();
59 operator<=>(const year_month& __lhs, const year_month& __rhs) noexcept {
60 if (auto __c = __lhs.year() <=> __rhs.year(); __c != 0)
62 return __lhs.month() <=> __rhs.month();
69 return (__lhs.year() + years(__dy)) / month(static_cast<unsigned>(__dmi));
73 return __rhs + __lhs;
77 return (__lhs.year() + __rhs) / __lhs.month();
81 return __rhs + __lhs;
85 return (__lhs.year() - __rhs.year()) +
90 return __lhs + -__rhs;
[all …]
H A Dweekday.h79 return __lhs.c_encoding() == __rhs.c_encoding();
83 return __lhs.c_encoding() < __rhs.c_encoding();
87 return __rhs < __lhs;
91 return !(__rhs < __lhs);
95 return !(__lhs < __rhs);
99 auto const __mu = static_cast<long long>(__lhs.c_encoding()) + __rhs.count();
105 return __rhs + __lhs;
109 return __lhs + -__rhs;
113 const int __wdu = __lhs.c_encoding() - __rhs.c_encoding();
144 return __lhs.weekday() == __rhs.weekday() && __lhs.index() == __rhs.index();
[all …]
H A Dday.h59 _LIBCPP_HIDE_FROM_ABI inline constexpr bool operator==(const day& __lhs, const day& __rhs) noexcept…
60 return static_cast<unsigned>(__lhs) == static_cast<unsigned>(__rhs);
64 return static_cast<unsigned>(__lhs) <=> static_cast<unsigned>(__rhs);
67 _LIBCPP_HIDE_FROM_ABI inline constexpr day operator+(const day& __lhs, const days& __rhs) noexcept {
68 return day(static_cast<unsigned>(__lhs) + __rhs.count());
71 _LIBCPP_HIDE_FROM_ABI inline constexpr day operator+(const days& __lhs, const day& __rhs) noexcept {
72 return __rhs + __lhs;
75 _LIBCPP_HIDE_FROM_ABI inline constexpr day operator-(const day& __lhs, const days& __rhs) noexcept {
76 return __lhs + -__rhs;
79 _LIBCPP_HIDE_FROM_ABI inline constexpr days operator-(const day& __lhs, const day& __rhs) noexcept {
[all …]
H A Dtime_point.h123 return __lhs.time_since_epoch() == __rhs.time_since_epoch();
133 return !(__lhs == __rhs);
143 return __lhs.time_since_epoch() < __rhs.time_since_epoch();
151 return __rhs < __lhs;
159 return !(__rhs < __lhs);
167 return !(__lhs < __rhs);
175 return __lhs.time_since_epoch() <=> __rhs.time_since_epoch();
187 return _Tr(__lhs.time_since_epoch() + __rhs);
196 return __rhs + __lhs;
206 return _Ret(__lhs.time_since_epoch() - __rhs);
[all …]
H A Dmonth.h59 _LIBCPP_HIDE_FROM_ABI inline constexpr bool operator==(const month& __lhs, const month& __rhs) noex…
60 return static_cast<unsigned>(__lhs) == static_cast<unsigned>(__rhs);
64 return static_cast<unsigned>(__lhs) <=> static_cast<unsigned>(__rhs);
67 _LIBCPP_HIDE_FROM_ABI inline constexpr month operator+(const month& __lhs, const months& __rhs) noe…
68 auto const __mu = static_cast<long long>(static_cast<unsigned>(__lhs)) + (__rhs.count() - 1);
73 _LIBCPP_HIDE_FROM_ABI inline constexpr month operator+(const months& __lhs, const month& __rhs) noe…
74 return __rhs + __lhs;
77 _LIBCPP_HIDE_FROM_ABI inline constexpr month operator-(const month& __lhs, const months& __rhs) noe…
78 return __lhs + -__rhs;
81 _LIBCPP_HIDE_FROM_ABI inline constexpr months operator-(const month& __lhs, const month& __rhs) noe…
[all …]
H A Dyear.h71 _LIBCPP_HIDE_FROM_ABI inline constexpr bool operator==(const year& __lhs, const year& __rhs) noexce…
72 return static_cast<int>(__lhs) == static_cast<int>(__rhs);
76 return static_cast<int>(__lhs) <=> static_cast<int>(__rhs);
79 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator+(const year& __lhs, const years& __rhs) noexce…
80 return year(static_cast<int>(__lhs) + __rhs.count());
83 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator+(const years& __lhs, const year& __rhs) noexce…
84 return __rhs + __lhs;
87 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator-(const year& __lhs, const years& __rhs) noexce…
88 return __lhs + -__rhs;
91 _LIBCPP_HIDE_FROM_ABI inline constexpr years operator-(const year& __lhs, const year& __rhs) noexce…
[all …]
H A Dduration.h302 return _Ct(__lhs).count() == _Ct(__rhs).count();
309 return __lhs.count() == __rhs.count();
326 return !(__lhs == __rhs);
337 return _Ct(__lhs).count() < _Ct(__rhs).count();
344 return __lhs.count() < __rhs.count();
359 return __rhs < __lhs;
367 return !(__rhs < __lhs);
375 return !(__lhs < __rhs);
385 return _Ct(__lhs).count() <=> _Ct(__rhs).count();
397 return _Cd(_Cd(__lhs).count() + _Cd(__rhs).count());
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__filesystem/
H A Ddirectory_options.h27 …return static_cast<directory_options>(static_cast<unsigned char>(__lhs) & static_cast<unsigned cha…
31 …return static_cast<directory_options>(static_cast<unsigned char>(__lhs) | static_cast<unsigned cha…
35 …return static_cast<directory_options>(static_cast<unsigned char>(__lhs) ^ static_cast<unsigned cha…
38 _LIBCPP_HIDE_FROM_ABI inline constexpr directory_options operator~(directory_options __lhs) {
39 return static_cast<directory_options>(~static_cast<unsigned char>(__lhs));
42 _LIBCPP_HIDE_FROM_ABI inline directory_options& operator&=(directory_options& __lhs, directory_opti…
43 return __lhs = __lhs & __rhs;
46 _LIBCPP_HIDE_FROM_ABI inline directory_options& operator|=(directory_options& __lhs, directory_opti…
47 return __lhs = __lhs | __rhs;
50 _LIBCPP_HIDE_FROM_ABI inline directory_options& operator^=(directory_options& __lhs, directory_opti…
[all …]
H A Dcopy_options.h38 _LIBCPP_HIDE_FROM_ABI inline constexpr copy_options operator&(copy_options __lhs, copy_options __rh…
42 _LIBCPP_HIDE_FROM_ABI inline constexpr copy_options operator|(copy_options __lhs, copy_options __rh…
46 _LIBCPP_HIDE_FROM_ABI inline constexpr copy_options operator^(copy_options __lhs, copy_options __rh…
50 _LIBCPP_HIDE_FROM_ABI inline constexpr copy_options operator~(copy_options __lhs) {
51 return static_cast<copy_options>(~static_cast<unsigned short>(__lhs));
54 _LIBCPP_HIDE_FROM_ABI inline copy_options& operator&=(copy_options& __lhs, copy_options __rhs) {
55 return __lhs = __lhs & __rhs;
58 _LIBCPP_HIDE_FROM_ABI inline copy_options& operator|=(copy_options& __lhs, copy_options __rhs) {
59 return __lhs = __lhs | __rhs;
62 _LIBCPP_HIDE_FROM_ABI inline copy_options& operator^=(copy_options& __lhs, copy_options __rhs) {
[all …]
H A Dperm_options.h27 return static_cast<perm_options>(static_cast<unsigned>(__lhs) & static_cast<unsigned>(__rhs));
31 return static_cast<perm_options>(static_cast<unsigned>(__lhs) | static_cast<unsigned>(__rhs));
35 return static_cast<perm_options>(static_cast<unsigned>(__lhs) ^ static_cast<unsigned>(__rhs));
38 _LIBCPP_HIDE_FROM_ABI inline constexpr perm_options operator~(perm_options __lhs) {
39 return static_cast<perm_options>(~static_cast<unsigned>(__lhs));
42 _LIBCPP_HIDE_FROM_ABI inline perm_options& operator&=(perm_options& __lhs, perm_options __rhs) {
43 return __lhs = __lhs & __rhs;
46 _LIBCPP_HIDE_FROM_ABI inline perm_options& operator|=(perm_options& __lhs, perm_options __rhs) {
47 return __lhs = __lhs | __rhs;
50 _LIBCPP_HIDE_FROM_ABI inline perm_options& operator^=(perm_options& __lhs, perm_options __rhs) {
[all …]
H A Dperms.h55 _LIBCPP_HIDE_FROM_ABI inline constexpr perms operator&(perms __lhs, perms __rhs) {
56 return static_cast<perms>(static_cast<unsigned>(__lhs) & static_cast<unsigned>(__rhs));
59 _LIBCPP_HIDE_FROM_ABI inline constexpr perms operator|(perms __lhs, perms __rhs) {
60 return static_cast<perms>(static_cast<unsigned>(__lhs) | static_cast<unsigned>(__rhs));
63 _LIBCPP_HIDE_FROM_ABI inline constexpr perms operator^(perms __lhs, perms __rhs) {
64 return static_cast<perms>(static_cast<unsigned>(__lhs) ^ static_cast<unsigned>(__rhs));
67 _LIBCPP_HIDE_FROM_ABI inline constexpr perms operator~(perms __lhs) {
68 return static_cast<perms>(~static_cast<unsigned>(__lhs));
71 _LIBCPP_HIDE_FROM_ABI inline perms& operator&=(perms& __lhs, perms __rhs) { return __lhs = __lhs & …
73 _LIBCPP_HIDE_FROM_ABI inline perms& operator|=(perms& __lhs, perms __rhs) { return __lhs = __lhs | …
[all …]
H A Dpath_iterator.h103 inline _LIBCPP_HIDE_FROM_ABI bool operator==(const path::iterator& __lhs, const path::iterator& __r…
104 return __lhs.__path_ptr_ == __rhs.__path_ptr_ && __lhs.__entry_.data() == __rhs.__entry_.data();
108 inline _LIBCPP_HIDE_FROM_ABI bool operator!=(const path::iterator& __lhs, const path::iterator& __r…
109 return !(__lhs == __rhs);
/freebsd/contrib/llvm-project/libcxx/include/
H A Dcstddef74 _LIBCPP_HIDE_FROM_ABI inline constexpr byte operator|(byte __lhs, byte __rhs) noexcept {
79 _LIBCPP_HIDE_FROM_ABI inline constexpr byte& operator|=(byte& __lhs, byte __rhs) noexcept {
80 return __lhs = __lhs | __rhs;
83 _LIBCPP_HIDE_FROM_ABI inline constexpr byte operator&(byte __lhs, byte __rhs) noexcept {
89 return __lhs = __lhs & __rhs;
92 _LIBCPP_HIDE_FROM_ABI inline constexpr byte operator^(byte __lhs, byte __rhs) noexcept {
98 return __lhs = __lhs ^ __rhs;
107 return __lhs = __lhs << __shift;
111 _LIBCPP_HIDE_FROM_ABI constexpr byte operator<<(byte __lhs, _Integer __shift) noexcept {
117 return __lhs = __lhs >> __shift;
[all …]
H A Dstring_view706 if (__lhs.size() != __rhs.size())
708 return __lhs.compare(__rhs) == 0;
731 if (__lhs.size() != __rhs.size())
733 return __lhs.compare(__rhs) == 0;
742 if (__lhs.size() != __rhs.size())
787 return __lhs.compare(__rhs) < 0;
794 return __lhs.compare(__rhs) < 0;
801 return __lhs.compare(__rhs) < 0;
808 return __lhs.compare(__rhs) > 0;
815 return __lhs.compare(__rhs) > 0;
[all …]
H A Dtypeinfo204 return __lhs == __rhs;
207 return __lhs < __rhs;
219 return __lhs == __rhs || __builtin_strcmp(__lhs, __rhs) == 0;
222 return __builtin_strcmp(__lhs, __rhs) < 0;
242 if (__lhs == __rhs)
244 if (__is_type_name_unique(__lhs) || __is_type_name_unique(__rhs))
251 if (__is_type_name_unique(__lhs) || __is_type_name_unique(__rhs))
252 return __lhs < __rhs;
253 return __builtin_strcmp(__type_name_to_string(__lhs), __type_name_to_string(__rhs)) < 0;
262 _LIBCPP_HIDE_FROM_ABI static bool __is_type_name_unique(__type_name_t __lhs) _NOEXCEPT {
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__iterator/
H A Dcpp17_iterator_concepts.h47 { __lhs = std::move(__rhs) } -> same_as<_Tp&>; in requires()
52 { __lhs = __rhs } -> same_as<_Tp&>; in requires()
53 { __lhs = std::as_const(__rhs) } -> same_as<_Tp&>; in requires()
61 { __lhs == __rhs } -> __boolean_testable; in requires()
62 { std::as_const(__lhs) == __rhs } -> __boolean_testable; in requires()
63 { __lhs == std::as_const(__rhs) } -> __boolean_testable; in requires()
81 { __lhs != __rhs } -> __boolean_testable; in requires()
86 { *__lhs } -> same_as<__iter_reference<_Iter>>; in requires()
89 { ++__lhs } -> same_as<_Iter&>; in requires()
90 { (void)__lhs++ }; in requires()
[all …]
H A Dcounted_iterator.h202 operator-(const counted_iterator& __lhs, const counted_iterator<_I2>& __rhs) {
203 return __rhs.__count_ - __lhs.__count_;
207 operator-(const counted_iterator& __lhs, default_sentinel_t) {
208 return -__lhs.__count_;
238 operator==(const counted_iterator& __lhs, const counted_iterator<_I2>& __rhs) {
239 return __lhs.__count_ == __rhs.__count_;
242 …_LIBCPP_HIDE_FROM_ABI friend constexpr bool operator==(const counted_iterator& __lhs, default_sent…
243 return __lhs.__count_ == 0;
248 operator<=>(const counted_iterator& __lhs, const counted_iterator<_I2>& __rhs) {
249 return __rhs.__count_ <=> __lhs.__count_;
H A Diterator_with_data.h53 operator==(const __iterator_with_data& __lhs, const __iterator_with_data& __rhs) {
54 return __lhs.__iter_ == __rhs.__iter_;
91 iter_swap(const __iterator_with_data& __lhs, in iter_swap() argument
92 …const __iterator_with_data& __rhs) noexcept(noexcept(ranges::iter_swap(__lhs.__iter_, __rhs.__iter… in iter_swap()
95 return ranges::iter_swap(__lhs.__data_, __rhs.__iter_); in iter_swap()
/freebsd/contrib/llvm-project/libcxx/include/__string/
H A Dconstexpr_c_functions.h57 __constexpr_memcmp(const _Tp* __lhs, const _Up* __rhs, __element_count __n) { in __constexpr_memcmp() argument
66 return __builtin_memcmp(__lhs, __rhs, __count * sizeof(_Tp)); in __constexpr_memcmp()
70 if (*__lhs < *__rhs) in __constexpr_memcmp()
72 if (*__rhs < *__lhs) in __constexpr_memcmp()
76 ++__lhs; in __constexpr_memcmp()
81 return __builtin_memcmp(__lhs, __rhs, __count * sizeof(_Tp)); in __constexpr_memcmp()
90 __constexpr_memcmp_equal(const _Tp* __lhs, const _Up* __rhs, __element_count __n) { in __constexpr_memcmp_equal() argument
99 return __builtin_memcmp(__lhs, __rhs, __count * sizeof(_Tp)) == 0; in __constexpr_memcmp_equal()
102 if (*__lhs != *__rhs) in __constexpr_memcmp_equal()
106 ++__lhs; in __constexpr_memcmp_equal()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__memory_resource/
H A Dmemory_resource.h57 operator==(const memory_resource& __lhs, const memory_resource& __rhs) noexcept {
58 return &__lhs == &__rhs || __lhs.is_equal(__rhs);
64 operator!=(const memory_resource& __lhs, const memory_resource& __rhs) noexcept {
65 return !(__lhs == __rhs);
/freebsd/contrib/llvm-project/libcxx/include/__algorithm/
H A Dranges_max_element.h43 …auto __comp_lhs_rhs_swapped = [&](auto&& __lhs, auto&& __rhs) -> bool { return std::invoke(__comp,…
52 …auto __comp_lhs_rhs_swapped = [&](auto&& __lhs, auto&& __rhs) -> bool { return std::invoke(__comp,…

123