fork(1) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. std::string & operator<< (std::string & left, std::string & right){
  5. return left += right;
  6. }
  7.  
  8. int main()
  9. {
  10. std::string t1("t1"), t2("t2"), t3;
  11. t3 = t2 << t1;
  12.  
  13. std::cout << t3;
  14. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
t2t1