operator== (std::stop_source)
From cppreference.net
<
cpp
|
thread
|
stop source
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::stop_source
| Member functions | ||||
| Modifiers | ||||
| Observers | ||||
| Non-member functions | ||||
|
operator==
|
||||
| Helper tags | ||||
|
friend
bool
operator
==
(
const
stop_source
&
lhs,
const
stop_source
&
rhs
)
noexcept
;
|
(自 C++20 起) | |
比较两个
stop_source
值。
此函数对普通的 非限定查找 或 限定查找 不可见,仅当 std::stop_source 作为参数的关联类时,才能通过 实参依赖查找 找到该函数。
!=
运算符由
operator==
合成而来。
参数
| lhs, rhs | - |
要比较的
stop_source
对象
|
返回值
如果 lhs 和 rhs 具有相同的停止状态,或两者均无停止状态,则为 true ,否则为 false 。