std::nostopstate, std::nostopstate_t

Header: <stop_token>

  1. Empty tag 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.

# Declarations

struct nostopstate_t { explicit nostopstate_t() = default; };

(since C++20)

inline constexpr std::nostopstate_t nostopstate {};

(since C++20)

# See also