c:c_threads:create_a_thread:create_a_thread_with_a_lambda
This is an old revision of the document!
C - C++ Threads - Create a thread - Create a thread with a lambda
#include <thread> #include <iostream> using namespace std; int main() { thread t1([] { cout << "Launching Scud missile" << endl; }); t1.join(); return 0; }
c/c_threads/create_a_thread/create_a_thread_with_a_lambda.1614909400.txt.gz · Last modified: 2021/03/05 01:56 by peter