#include <thread>
PublicTypesusingid = thread::idusingnative_handle_type = thread::native_handle_type
PublicMemberFunctions
template<typename _Callable , typename... _Args, typename =
enable_if_t<!is_same_v<remove_cvref_t<_Callable>, jthread>>> jthread
(_Callable &&__f, _Args &&... __args)
jthread (const jthread &)=deletejthread (jthread &&) noexcept=defaultvoiddetach ()
idget_id () const noexcept
stop_sourceget_stop_source () noexcept
stop_tokenget_stop_token () const noexcept
voidjoin ()
bool joinable () const noexcept
native_handle_type native_handle ()
jthread & operator= (const jthread &)=deletejthread & operator= (jthread &&__other) noexcept
bool request_stop () noexcept
voidswap (jthread &__other) noexcept
StaticPublicMemberFunctionsstatic unsigned hardware_concurrency () noexcept
Friendsvoidswap (jthread &__lhs, jthread &__rhs) noexcept