fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. template <typename T>
  5. void print(const std::basic_string<T>& a, const std::basic_string<T>& b)
  6. {
  7. std::cout << a << b << std::endl;
  8. }
  9.  
  10. int main()
  11. {
  12. std::string foo = "foo";
  13. std::string bar = "bar";
  14. print(foo, bar);
  15. }
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
foobar