停止令牌类
更多...
#include <stop_token.hpp>
|
|
| stop_token () noexcept=default |
| | 默认构造函数
|
|
| ~stop_token ()=default |
| | 析构函数
|
|
| stop_token (const stop_token &) noexcept=default |
| | 拷贝构造函数
|
|
stop_token & | operator= (const stop_token &) noexcept=default |
| | 拷贝赋值运算符
|
|
| stop_token (stop_token &&) noexcept=default |
| | 移动构造函数
|
|
stop_token & | operator= (stop_token &&) noexcept=default |
| | 移动赋值运算符
|
| bool | stop_possible () const noexcept |
| | 检查是否可能收到停止请求
|
| bool | stop_requested () const noexcept |
| | 检查是否已收到停止请求
|
| void | swap (stop_token &other) noexcept |
| | 交换两个停止令牌
|
| bool | operator== (const stop_token &rhs) const |
| | 相等比较运算符
|
停止令牌类
停止令牌用于查询是否收到停止请求,但不具备发起停止请求的能力。
在文件 stop_token.hpp 第 38 行定义.
◆ operator==()
| bool neforce::stop_token::operator== |
( |
const stop_token & | rhs | ) |
const |
|
inlinenodiscard |
◆ stop_possible()
| bool neforce::stop_token::stop_possible |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ stop_requested()
| bool neforce::stop_token::stop_requested |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ swap()
| void neforce::stop_token::swap |
( |
stop_token & | other | ) |
|
|
inlinenoexcept |
该类的文档由以下文件生成: