std::nostopstate, std::nostopstate_t
来自 cppreference.cn
< cpp | thread | stop source
定义于头文件 <stop_token> |
||
struct nostopstate_t { explicit nostopstate_t() = default; }; |
(1) | (C++20 起) |
inline constexpr std::nostopstate_t nostopstate {}; |
(2) | (C++20 起) |
2) 相应的 `std::nostopstate_t` 常量对象实例,用于构造空的 std::stop_source,作为非默认构造函数中的占位符值。
[编辑] 另请参阅
(C++20) |
表示停止一个或多个 std::jthread 请求的类 (class) |