std::indepe..._engine::max(3)

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

πŸ’… std::indepe..._engine::max(3)

okay so this is from the C++ Standard Libary manual β€” yes, β€œLibary,” that’s exactly how the page spells it, no cap β€” and we’re talking about std::independent_bits_engine::max, bestie. It’s giving β€œbiggest possible output value” energy. ✨


🌸 NAME 🌸

std::independent_bits_engine::max β€” literally std::independent_bits_engine::max. That’s the whole name, periodt. πŸ’–

✨ Synopsis ✨

static constexpr result_type max();  (since C++11)

So it’s a static constexpr function that returns result_type, takes absolutely no arguments, and has been around (since C++11). Slay. πŸ’…

It returns the maximum value potentially generated by the engine adaptor. This value is equal to 2w - 1. πŸ‘‘

πŸŽ€ Parameters πŸŽ€

  • (none) β€” not a single argument, bestie. Zero. Zilch. 🫢

πŸ¦‹ Return value πŸ¦‹

The maximum potentially generated value. That’s it. Main character value. πŸ‘‘

⭐ Complexity ⭐

Constant. No extra drama, just constant energy. ⚑

πŸ”₯ See also πŸ”₯

  • min β€” gets the smallest possible value in the output range. It’s [static] (C++11) and a public static member function. Iconic sibling energy. πŸ’œ

mwah πŸ’‹ this gem came from http://cppreference.com, dated 2024.06.10, and it’s the std::indepe..._engine::max(3) page. 🫢

πŸ“¦ where this page comes from