std::stop_source(3cxx)
π std::stop_source π
okay so welcome to the std::stop_source(3cxx) manual page, bestie β this is the libstdc++ stop-source situation, and weβre keeping every signature exactly where it belongs. no cap. π«Ά
πΈ NAME πΈ
std::stop_source β a type that allows a stop request to be made. π
π SYNOPSIS π
#include <stop_token>
β¨ Public Member Functions β¨
stop_source (const stop_source &__other) noexceptβ copy ctor energy,noexceptand all that. πstop_source (std::nostopstate_t) noexceptβ ctor that takesstd::nostopstate_t,noexceptbestie. πstop_source (stop_source &&) noexcept=defaultβ move ctor,noexcept=default, iconic. π«Άstop_token get_token () const noexceptβ returns astop_token,const noexcept. πΈstop_source & operator= (const stop_source &__other) noexceptβ copy assignment, returnsstop_source &,noexcept. πstop_source & operator= (stop_source &&) noexcept=defaultβ move assignment, returnsstop_source &,noexcept=default. β¨bool request_stop () const noexceptβ returnsbool,const noexcept. π₯bool stop_possible () const noexceptβ returnsbool,const noexcept. πbool stop_requested () const noexceptβ returnsbool,const noexcept. βvoid swap (stop_source &__other) noexceptβ takesstop_source &__other, returnsvoid,noexcept. π¦
π«Ά Friends π«Ά
these two are friends of the class, and yes both are noexcept; the exact lines are:
bool operator== (const stop_source &__a, const stop_source &__b)
noexcept
void swap (stop_source &__lhs, stop_source &__rhs) noexcept
π« Detailed Description π«
A type that allows a stop request to be made. periodt. π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. π€
bye bestie! source/version: libstdc++; manual page: std::stop_source(3cxx); date: not shown in the original footer, so Iβm not inventing one π«Άπ
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms