W3cubDocs

/C++

std::nostopstate

Defined in header <stop_token>
inline constexpr std::nostopstate_t nostopstate{};
(since C++20)

This is a constant object instance of std::nostopstate_t for use in constructing an empty std::stop_source, as a placeholder value in the non-default constructor.

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/thread/stop_source/nostopstate