fork download
  1. #include <iostream>
  2. #include <thread>
  3. #include <vector>
  4. using namespace std;
  5.  
  6. int main() {
  7. thread t1,t2,t3;
  8. vector<thread> ts;
  9. ts.emplace_back(move(t1));
  10. ts.emplace_back(move(t2));
  11. ts.emplace_back(move(t3));
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0.01s 5272KB
stdin
Standard input is empty
stdout
Standard output is empty