Lines Matching refs:__lhs
3845 operator==(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3848 size_t __lhs_sz = __lhs.size();
3849 return __lhs_sz == __rhs.size() && _Traits::compare(__lhs.data(),
3857 operator==(const basic_string<char, char_traits<char>, _Allocator>& __lhs,
3860 size_t __lhs_sz = __lhs.size();
3863 const char* __lp = __lhs.data();
3865 if (__lhs.__is_long())
3876 operator==(const _CharT* __lhs,
3880 _LIBCPP_ASSERT(__lhs != nullptr, "operator==(char*, basic_string): received nullptr");
3881 size_t __lhs_len = _Traits::length(__lhs);
3883 return __rhs.compare(0, _String::npos, __lhs, __lhs_len) == 0;
3889 operator==(const basic_string<_CharT,_Traits,_Allocator>& __lhs,
3895 if (__rhs_len != __lhs.size()) return false;
3896 return __lhs.compare(0, _String::npos, __rhs, __rhs_len) == 0;
3902 operator!=(const basic_string<_CharT,_Traits,_Allocator>& __lhs,
3905 return !(__lhs == __rhs);
3911 operator!=(const _CharT* __lhs,
3914 return !(__lhs == __rhs);
3920 operator!=(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3923 return !(__lhs == __rhs);
3931 operator< (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3934 return __lhs.compare(__rhs) < 0;
3940 operator< (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3943 return __lhs.compare(__rhs) < 0;
3949 operator< (const _CharT* __lhs,
3952 return __rhs.compare(__lhs) > 0;
3960 operator> (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3963 return __rhs < __lhs;
3969 operator> (const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3972 return __rhs < __lhs;
3978 operator> (const _CharT* __lhs,
3981 return __rhs < __lhs;
3989 operator<=(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
3992 return !(__rhs < __lhs);
3998 operator<=(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
4001 return !(__rhs < __lhs);
4007 operator<=(const _CharT* __lhs,
4010 return !(__rhs < __lhs);
4018 operator>=(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
4021 return !(__lhs < __rhs);
4027 operator>=(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
4030 return !(__lhs < __rhs);
4036 operator>=(const _CharT* __lhs,
4039 return !(__lhs < __rhs);
4046 operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
4049 basic_string<_CharT, _Traits, _Allocator> __r(__lhs.get_allocator());
4050 typename basic_string<_CharT, _Traits, _Allocator>::size_type __lhs_sz = __lhs.size();
4052 __r.__init(__lhs.data(), __lhs_sz, __lhs_sz + __rhs_sz);
4059 operator+(const _CharT* __lhs , const basic_string<_CharT,_Traits,_Allocator>& __rhs)
4062 typename basic_string<_CharT, _Traits, _Allocator>::size_type __lhs_sz = _Traits::length(__lhs);
4064 __r.__init(__lhs, __lhs_sz, __lhs_sz + __rhs_sz);
4071 operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Allocator>& __rhs)
4075 __r.__init(&__lhs, 1, 1 + __rhs_sz);
4083 operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, const _CharT* __rhs)
4085 basic_string<_CharT, _Traits, _Allocator> __r(__lhs.get_allocator());
4086 typename basic_string<_CharT, _Traits, _Allocator>::size_type __lhs_sz = __lhs.size();
4088 __r.__init(__lhs.data(), __lhs_sz, __lhs_sz + __rhs_sz);
4095 operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, _CharT __rhs)
4097 basic_string<_CharT, _Traits, _Allocator> __r(__lhs.get_allocator());
4098 typename basic_string<_CharT, _Traits, _Allocator>::size_type __lhs_sz = __lhs.size();
4099 __r.__init(__lhs.data(), __lhs_sz, __lhs_sz + 1);
4109 operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, const basic_string<_CharT, _Traits, _A…
4111 return _VSTD::move(__lhs.append(__rhs));
4117 operator+(const basic_string<_CharT, _Traits, _Allocator>& __lhs, basic_string<_CharT, _Traits, _Al…
4119 return _VSTD::move(__rhs.insert(0, __lhs));
4125 operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, basic_string<_CharT, _Traits, _Allocat…
4127 return _VSTD::move(__lhs.append(__rhs));
4133 operator+(const _CharT* __lhs , basic_string<_CharT,_Traits,_Allocator>&& __rhs)
4135 return _VSTD::move(__rhs.insert(0, __lhs));
4141 operator+(_CharT __lhs, basic_string<_CharT,_Traits,_Allocator>&& __rhs)
4143 __rhs.insert(__rhs.begin(), __lhs);
4150 operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, const _CharT* __rhs)
4152 return _VSTD::move(__lhs.append(__rhs));
4158 operator+(basic_string<_CharT, _Traits, _Allocator>&& __lhs, _CharT __rhs)
4160 __lhs.push_back(__rhs);
4161 return _VSTD::move(__lhs);
4171 swap(basic_string<_CharT, _Traits, _Allocator>& __lhs,
4173 _NOEXCEPT_(_NOEXCEPT_(__lhs.swap(__rhs)))
4175 __lhs.swap(__rhs);