thread_guard(thread_guard const&) = delete; thread_guard& operator=(thread_guard const&) = delete;
thread_guard(thread_guard const&)是一个复制构造函数,thread_guard& operator =(thread_guard const&)是赋值构造函数.因此,这两行一起禁用了thread_guard实例的复制.