Namespaces
Variants
Views
Actions

std::nostopstate_t

From cppreference.com
< cpp‎ | thread‎ | stop source
 
 
Thread support library
Threads
(C++11)
(C++20)
(C++20)
this_thread namespace
(C++11)
(C++11)
(C++11)
Mutual exclusion
(C++11)
Generic lock management
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
Condition variables
(C++11)
Semaphores
Latches and barriers
(C++20)
(C++20)
Futures
(C++11)
(C++11)
(C++11)
(C++11)
 
 
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.