Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Extra-Creativity/Modern-Cpp-Basics
/ swap
Method
swap
13-Multithreading/Answer-code/Thread.cpp:51–51 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
49
}
50
~Thread() { CheckJoinable_(); }
51
void swap(Thread &another) noexcept { handle_.swap(another.handle_); }
52
53
template<typename F, typename... Args>
54
Thread(F &&func, Args &&...args)
Callers
1
swap<Thread>
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected