Comment créer un tableau d'objets thread dans C ++ 11?

Je veux apprendre comment créer plusieurs threads avec la nouvelle norme C++ de la bibliothèque et de stocker leurs poignées dans un tableau.
Comment puis-je commencer un thread?
Les exemples que j'ai vu commencer une discussion avec le constructeur, mais si j'utilise la matrice, je ne peux pas appeler le constructeur.

#include <iostream>
#include <thread>

void exec(int n){
    std::cout << "thread " << n << std::endl;
}

int main(int argc, char* argv[]){

    std::thread myThreads[4];

    for (int i=0; i<4; i++){
        //myThreads[i].start(exec, i); //?? create, start, run
        //new (&myThreads[i]) std::thread(exec, i); //I tried it and it seems to work, but it looks like a bad design or an anti-pattern.
    }
    for (int i=0; i<4; i++){
        myThreads[i].join();
    }

}

source d'informationauteur Squall