Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String operator+(const char lstr, const String& rstr) {
- String copy(1, lstr);
- copy += rstr;
- return copy;
- }
- String operator+(const String& lstr, const char rstr) {
- String copy = lstr;
- copy.push_back(rstr);
- return copy;
- }
- String operator+(const String& lstr, const String& rstr) {
- String copy = lstr;
- copy += rstr;
- return copy;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement