目录

swap

描述 (Description)

它将对象的状态与x的状态交换。

声明 (Declaration)

以下是std :: thread :: swap函数的声明。

void swap (thread& x) noexcept;

C++11

void swap (thread& x) noexcept;

参数 (Parameters)

x - 其状态与* this交换的线程对象。

返回值 (Return Value)

没有

异常 (Exceptions)

No-throw guarantee - 永不抛出异常。

数据竞争 (Data races)

访问该对象。

↑回到顶部↑
WIKI教程 @2018