[ Web Proxy ]
URL:
Viewing: https://en.cppreference.com/cpp/thread/inplace_stop_token/swap [Back]  [Original]

std::inplace_stop_token::swap - cppreference.com
cppreference.com
Namespaces
Variants

std::inplace_stop_token::swap

From cppreference.com
 
 
Concurrency support library
Threads
(C++11)
(C++20)
this_thread namespace
(C++11)
(C++11)
(C++11)
Cooperative cancellation
Mutual exclusion
(C++11)
Generic lock management
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
Condition variables
(C++11)
Semaphores
Latches and Barriers
(C++20)
(C++20)
Futures
(C++11)
(C++11)
(C++11)
(C++11)
Safe Reclamation
Read-Copy-Update Mechanism
(C++26)
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
 
 
void swap( std::inplace_stop_token& other ) noexcept;
(since C++26)

Exchanges the associated stop-state of *this and other.

Equivalent to std::swap(this->/*stop_state_*/, other./*stop_state_*/);.

Parameters

other - inplace_stop_token to exchange the contents with

Web Proxy Viewer  |  New URL  |  Original Page