fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <string>
  4.  
  5. void func(std::vector<std::string> const &_vs)
  6. {
  7. for (auto &i : _vs) {
  8. std::cout << i << '\n';
  9. }
  10. }
  11.  
  12. int main()
  13. {
  14. func({"one", "two", "three"});
  15. return 0;
  16. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
one
two
three