6class InPlaceStopToken {
16 template<
typename Callback>
22 [[nodiscard]]
auto stop_requested() const ->
bool {
return !!m_source && m_source->stop_requested(); }
25 [[nodiscard]]
auto operator==(InPlaceStopToken
const&)
const ->
bool =
default;
auto get_stop_token() const -> InPlaceStopToken
Definition in_place_stop_token.h:31
Definition in_place_stop_token.h:6
~InPlaceStopToken()=default
InPlaceStopToken()=default
InPlaceStopCallback< Callback > CallbackType
Definition in_place_stop_token.h:17
friend class InPlaceStopCallback
Definition in_place_stop_token.h:11
friend class InPlaceStopSource
Definition in_place_stop_token.h:8
auto stop_requested() const -> bool
Definition in_place_stop_token.h:22
auto stop_possible() const -> bool
Definition in_place_stop_token.h:23
auto operator==(InPlaceStopToken const &) const -> bool=default