W3cubDocs

/C++

std::nostopstate_t

Defined in header <stop_token>
struct nostopstate_t {
    explicit nostopstate_t() = default;
};
(since C++20)

Unit type intended for use as a placeholder in std::stop_source non-default constructor, that makes the constructed std::stop_source empty with no associated stop-state.

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