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_source - A type that allows a stop request to be made.

Author

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

                                                    libstdc++                             std::stop_source(3cxx)

Detailed Description

       A type that allows a stop request to be made.

Name

       std::stop_source - A type that allows a stop request to be made.

Synopsis

       #include <stop_token>

   PublicMemberFunctionsstop_source (const stop_source &__other) noexcept
       stop_source (std::nostopstate_t) noexcept
       stop_source (stop_source &&) noexcept=defaultstop_tokenget_token () const noexcept
       stop_source & operator= (const stop_source &__other) noexcept
       stop_source & operator= (stop_source &&) noexcept=default
       bool request_stop () const noexcept
       bool stop_possible () const noexcept
       bool stop_requested () const noexcept
       voidswap (stop_source &__other) noexcept

   Friends
       bool operator== (const stop_source &__a, const stop_source &__b) noexcept
       voidswap (stop_source &__lhs, stop_source &__rhs) noexcept

See Also