Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

swap Function (<thread>)

 

Swaps the states of two thread objects.

void swap(
   thread& Left,
   thread& Right
) _NOEXCEPT;

Left

The left thread object.

Right

The right thread object.

The function calls Left.swap(Right).

Requirements

Header: thread

Namespace: std

Show: