Namespaces
Variants

operator== (std::stop_token)

From cppreference.net
Concurrency support library
Threads
(C++11)
(C++20)
this_thread namespace
(C++11)
(C++11)
Cooperative cancellation
Mutual exclusion
Generic lock management
Condition variables
(C++11)
Semaphores
Latches and Barriers
(C++20)
(C++20)
Futures
(C++11)
(C++11)
(C++11)
Safe reclamation
Hazard pointers
Atomic types
(C++11)
(C++20)
Initialization of atomic types
(C++11) (deprecated in C++20)
(C++11) (deprecated in C++20)
Memory ordering
(C++11) (deprecated in C++26)
Free functions for atomic operations
Free functions for atomic flags
friend bool operator == ( const stop_token & lhs, const stop_token & rhs ) noexcept ;
(C++20 이후)

두 개의 stop_token 값을 비교합니다.

이 함수는 일반적인 unqualified 또는 qualified lookup 으로는 보이지 않으며, std::stop_token이 인자들의 연관 클래스일 때에만 argument-dependent lookup 에 의해 찾을 수 있습니다.

!= 연산자는 합성된 연산자로, operator== 로부터 생성됩니다.

매개변수

lhs, rhs - stop_token 비교 대상

반환값

true 만약 lhs rhs 가 동일한 연관된 중지 상태를 가지거나, 둘 다 연관된 중지 상태가 없는 경우, 그렇지 않으면 false .