std::stop_t...::stop_token(3)
πΈ std::stop_t...::stop_token(3) πΈ
okay so bestie, this is the <std::stop_token::stop_token> page from the C++ Standard Libary manual, section 3, and itβs giving βconstructors for a stop_tokenβ energy. periodt. π
β¨ NAME β¨
std::stop_token::stop_token β std::stop_token::stop_token π
π¦ Synopsis π¦
stop_token() noexcept; (1) (since C++20)
stop_token( const stop_token& other ) noexcept; (2) (since C++20)
stop_token( stop_token&& other ) noexcept; (3) (since C++20)
Constructs a new stop_token object. π«Ά
- no cap, this one constructs an empty
stop_tokenwith no associated stop-state. β¨ - copy constructor behavior: constructs a
stop_tokenwhose associated stop-state is the same as that ofother. π - move constructor behavior: constructs a
stop_tokenwhose associated stop-state is the same as that ofother;otheris left empty. π
π Parameters π
otherβ anotherstop_tokenobject to construct thisstop_tokenobject with. πΈ
π Postconditions π
stop_possible()andstop_requested()are bothfalse. π*thisandothershare the same associated stop-state and compare equal. π*thishasother's previously associated stop-state, andother.stop_possible()isfalse. π
source/version: http://cppreference.com, date 2024.06.10, page std::stop_t...::stop_token(3). byeee bestie, go construct responsibly π
β¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms