任何callable target – functions, lambda expressions, bind expressions, or other function objects, as well as pointers to member functions and pointers to data members都可以作爲線程的入口函數。
#include <thread>
#include <iostream>
#include <functional>
// 函數
void Foo() {
std::cout