按设计,std::mutex不可移动也不可复制.这意味着A拥有互斥锁的类不会接收default-move-constructor.
std::mutex
A
如何A以线程安全的方式使这种类型移动?
c++ mutex move-constructor
c++ ×1
move-constructor ×1
mutex ×1