std::nostopstate(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– std::nostopstate(3) πŸ’–

okay so bestie, this one comes from the C++ Standard Libary manual, and it is lowkey a tiny little page β€” but every detail matters, so let's go πŸ’…


✨ NAME ✨

std::nostopstate β€” that's the name, that's the whole name, and honestly? iconic self-titled behavior πŸŽ€


🌸 Synopsis 🌸

Defined in header <stop_token>
inline constexpr std::nostopstate_t nostopstate{};  (since C++20)

so this is a constant object instance of std::nostopstate_t for use in constructing an empty std::stop_source, as a placeholder value in the non-default constructor. that's the tea β˜•βœ¨


signed off with max sparkle: source/version http://cppreference.com, dated 2024.06.10 πŸ«ΆπŸ’–

πŸ“¦ where this page comes from