logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

std::stop_token - Allow testing whether a stop request has been made on a stop_source.

Author

       Generated automatically by Doxygen for libstdc++ from the source code.

                                                    libstdc++                              std::stop_token(3cxx)

Detailed Description

       Allow testing whether a stop request has been made on a stop_source.

Name

       std::stop_token - Allow testing whether a stop request has been made on a stop_source.

Synopsis

       #include <stop_token>

   PublicMemberFunctionsstop_token (const stop_token &) noexcept=defaultstop_token (stop_token &&) noexcept=defaultstop_token & operator= (const stop_token &) noexcept=defaultstop_token & operator= (stop_token &&) noexcept=default
       bool stop_possible () const noexcept
       bool stop_requested () const noexcept
       voidswap (stop_token &__rhs) noexcept

   Friends
       bool operator== (const stop_token &__a, const stop_token &__b)
       template<typename _Callback > classstop_callbackclassstop_sourcevoidswap (stop_token &__lhs, stop_token &__rhs) noexcept

See Also