Namespaces
Variants

swap (std::stop_source)

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 void swap ( stop_source & lhs, stop_source & rhs ) noexcept ;
(C++20 이후)

std::swap 알고리즘을 std::stop_source 에 대해 오버로드합니다. lhs 의 정지 상태(stop-state)와 rhs 의 정지 상태를 교환합니다. 효과적으로 lhs. swap ( rhs ) 를 호출합니다.

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

매개변수

lhs, rhs - stop_source 교환할 객체

반환값

(없음)