std::discre...ibution::max(3)

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

πŸ’… std::discre...ibution::max(3) πŸ’…

okay bestie, welcome to the C++ Standard Libary manual page for std::discrete_distribution::max β€” yes, the header is doing that cute ellipsis thing (std::discre...ibution::max), but the actual function name is fully std::discrete_distribution::max. This is the vibe check for the max value this distribution can potentially generate. 🫢


🌸 NAME 🌸

  • std::discrete_distribution::max β€” std::discrete_distribution::max

✨ Synopsis ✨

result_type max() const;  (since C++11)

It returns the maximum value potentially generated by the distribution. That's the whole main character move. πŸ’–

πŸŽ€ Parameters πŸŽ€

  • (none) β€” no arguments, no extra baggage. 🧚

🌈 Return value 🌈

The maximum value potentially generated by the distribution. Yep, that's the answer, and it's giving exactly what it needs to give. ✨

πŸ¦‹ Complexity πŸ¦‹

Constant. Zero drama, zero scaling arc. πŸ’…

πŸ‘‘ See also πŸ‘‘

  • min β€” returns the minimum potentially generated value
    • (C++11) (public member function)
lowkey important: this page is all about the max, but the min bestie is right there if you need the lower bound. 😭

signed with sparkles and exact facts πŸ’– β€” source/version/date: http://cppreference.com, 2024.06.10, std::discre...ibution::max(3).

πŸ“¦ where this page comes from