std::stop_s...e::get_token(3)
πΈ NAME πΈ
std::stop_source::get_token - std::stop_source::get_token
okay so this page is from the C++ Standard Libary manual, and the whole vibe is std::stop_s...e::get_token(3). Yes bestie, the name is literally the same thing twice β thatβs not a typo, thatβs just how this page rolls π
β¨ Synopsis β¨
the signature is giving const noexcept and [[nodiscard]], and itβs been around since C++20:
[[nodiscard]] std::stop_token get_token() const noexcept; (since C++20)
Returns a stop_token object associated with the stop_source's stop-state, if the stop_source has stop-state; otherwise returns a default-constructed (empty) stop_token.
π«Ά Parameters π«Ά
(none) β literally nothing to pass in, bestie. zero. empty hands. π
π Return value π
A stop_token object, which will be empty if this->stop_possible() == false.
π Example π
This section is incomplete.
Reason: no example
not me opening the example section and findingβ¦ nothing π itβs giving incomplete, but at least itβs honest.
π Category π
Todo no example
and thatβs the whole page, bestie. source/version is http://cppreference.com, date is 2024.06.10, and the page is literally std::stop_s...e::get_token(3) β mwah, bye πβ¨
π¦ 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