std::stop_s...e::operator=(3)
π NAME π
std::stop_source::operator= β literally std::stop_source::operator=, bestie. This page is from the C++ Standard Libary man pages (yes, βLibaryβ β weβre keeping the spelling exactly π«Ά).
πΈ Synopsis πΈ
Okay so hereβs the assignment situation, and itβs giving βstop-state handoffβ energy:
- (1) (since C++20) β copy assignment:
std::stop_source& operator=( const std::stop_source& other )and itβsnoexcept;β¨ - (2) (since C++20) β move assignment:
std::stop_source& operator=( std::stop_source&& other ) noexcept;π₯
Both of these replace the stop-state with that of other.
- Copy assignment (1) β copy-assigns the stop-state of
otherto that of*this. Equivalent to:
stop_source(other).swap(*this)
- Move assignment (2) β move-assigns the stop-state of
otherto that of*this. After the assignment,*thiscontains the previous stop-state ofother, andotherhas no stop-state. Equivalent to:
stop_source(std::move(other)).swap(*this)
π¦ Parameters π¦
otherβ anotherstop_sourceobject to share the stop-state with to or acquire the stop-state from. Yes, thatβs the exact wording, bestie ππ
Source/version/date cutie check: http://cppreference.com, 2024.06.10, and the page header is std::stop_s...e::operator=(3). Bye bestie, go assign those stop-states 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