thread with a function from a class c++ code example Example: thread c++ member function myThreads[i] = std::thread(&Car::start, myCar);