std::counti...aphore::max(3)

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

πŸ’– 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, LeastMaxValue is equal to 1.
  • As its name indicates, LeastMaxValue is the minimum max value, not the actual max value. So max() can yield a number larger than LeastMaxValue. No cap 🧚.

Sourced from http://cppreference.com, dated 2024.06.10 β€” bye bestie, go slay those semaphores πŸ«ΆπŸ’–

πŸ“¦ where this page comes from