Home | History | Annotate | Download | only in include

Lines Matching refs:operator

144     string& operator+=(const string& str) { return this->append(str); }
148 string& operator+=(const value_type *str) { return this->append(str); }
152 string& operator+=(const char c) { this->push_back(c); return *this; }
174 friend bool operator==(const string& left, const string& right);
175 friend bool operator==(const string& left, const value_type *right);
176 friend bool operator==(const value_type *left, const string& right) { return right == left; }
177 friend bool operator!=(const string& left, const string& right) { return !(left == right); }
178 friend bool operator!=(const string& left, const char* right) { return !(left == right); }
179 friend bool operator!=(const value_type *left, const string& right) { return !(left == right); }
196 const char& operator[](const size_type pos) const;
200 char& operator[](const size_type pos);
202 // 'at' is similar to operator[] except that it does check bounds.
207 string& operator=(const string& str) { return assign(str); }
208 string& operator=(const char* str) { return assign(str); }
209 string& operator=(char c);
226 friend string operator+(const string& left, const string& right) {
229 friend string operator+(const string& left, const value_type *right) {
232 friend string operator+(const value_type *left, const string& right) {
235 friend string operator+(const string& left, char right) {
236 return string(left).operator+=(right);
238 friend string operator+(char left, const string& right) {
321 bool operator<(const string& lhs, const string& rhs);
322 bool operator<=(const string& lhs, const string& rhs);
323 bool operator>(const string& lhs, const string& rhs);
324 bool operator>=(const string& lhs, const string& rhs);
330 ostream& operator<<(ostream& os, const string& str);