fork(1) download
  1. #include <vector>
  2. #include <string>
  3. #include <iostream>
  4.  
  5. std::vector<std::string> operator<<(std::vector<std::string>&& op, std::string str)
  6. {
  7. op.push_back(std::move(str));
  8. return op;
  9. }
  10.  
  11. int main()
  12. {
  13. std::vector<std::string> a = std::vector<std::string>() << "A" << "B";
  14. return 0;
  15. }
Success #stdin #stdout 0s 3028KB
stdin
Standard input is empty
stdout
Standard output is empty