std::counti...aphore::max(3)
π NAME π
std::counting_semaphore::max - std::counting_semaphore::max β that's the name, bestie. The manual page is std::counti...aphore::max(3), and it's from the C++ Standard Libary (yes, that spelling is the page's, and we're keeping it π
).
β¨ Synopsis β¨
constexpr std::ptrdiff_t max() noexcept; (since C++20)
It returns the internal counter's maximum possible value, which is greater than or equal to LeastMaxValue.
π¦ Return value π¦
The internal counter's maximum possible value, as a std::ptrdiff_t.
π Notes π
- For the specialization
binary_semaphore,LeastMaxValueis equal to1. - As its name indicates,
LeastMaxValueis the minimum max value, not the actual max value. Somax()can yield a number larger thanLeastMaxValue. No cap π§.
Sourced from http://cppreference.com, dated 2024.06.10 β bye bestie, go slay those semaphores π«Άπ
π¦ 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