nieznana ilość wątków CPP

#inculde <iostream>
#include <threads>
#include <vecotr>

std::vector<std::thread*> threads;

for(int i = 0; i < x; i++)
{
  threads.push_back(new std::thread(func));
}
TheGreenOak