#include <thread> #include <chrono> #include <string> #include <iostream> /* * ããã¼ã®é¢æ° */ void global_fun(int n) { using namespace std; cout << "global_fun: " + to_string(n) + " ç§å¾ã«çµäºãã¾ã...\n"; this_thread::sleep_for(chrono::seconds(n)); cout << "global_fun: ããã¾ã\n"; } /* * ã©ã ãå¼ */ auto lambda_exp = [](int n) { using namespace std; cout << "lambda_exp: " + to_string(n) + " ç§å¾ã«çµäºãã¾ã...\n"; this_thre
{{#tags}}- {{label}}
{{/tags}}