std::jthread::get_stop_token
提供: cppreference.com
<tbody>
</tbody>
std::stop_token get_stop_token() const noexcept; |
(C++20以上) | |
この jthread オブジェクトが内部的に保持しているのと同じ共有された停止状態に紐付く std::stop_token を返します。
引数
(なし)
戻り値
jthread オブジェクトが内部的に保持している停止状態に紐付く std::stop_token 型の値。
例
| This section is incomplete Reason: no example |