std::thread::swap

From Cppreference

Jump to: navigation, search
void swap( thread& other );
(C++11 feature)

Exchanges the underlying handles of two thread objects.

Contents

[edit] Parameters

other - the thread to swap with

[edit] Return value

(none)

[edit] Exceptions

noexcept specification:  
noexcept

  (C++11 feature)

[edit] Example

[edit] See also

std::swap(std::thread) (C++11)
specializes the std::swap() algorithm
(function template)