ecor
Loading...
Searching...
No Matches
ecor::stop_token_env< Token > Struct Template Reference

A minimal environment that carries a stop token and satisfies get_stop_token queries. More...

#include <ecor.hpp>

Public Member Functions

decltype(auto) query (get_stop_token_t) const noexcept
 

Detailed Description

template<typename Token = inplace_stop_token>
struct ecor::stop_token_env< Token >

A minimal environment that carries a stop token and satisfies get_stop_token queries.

Token may be a value type or a reference type — e.g. inplace_stop_token or inplace_stop_token&. Using a reference avoids copying and reflects live token state.


The documentation for this struct was generated from the following file: