任何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