std::subtra...engine::max(3)

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

πŸŽ€ NAME πŸŽ€

okay so we're on the std::subtract_with_carry_engine::max page from the C++ Standard Libary manual, and the header is literally out here calling itself std::subtra...engine::max(3) because it ran out of vowel energy πŸ˜­πŸ’….

std::subtract_with_carry_engine::max β€” std::subtract_with_carry_engine::max. that's the name, bestie, no notes.


πŸ¦‹ Synopsis πŸ¦‹

the whole signature is giving main character energy since C++11:

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

it returns the maximum value potentially generated by the random-number engine. this value is equal to 2w - 1, where w is the template parameter also accessible as static member word_size ✨.

πŸ’– Parameters πŸ’–

none. literally none. the parameter list is empty, fr fr 🫢.

✨ Return value ✨

the maximum potentially generated value, periodt πŸ‘‘.

🌸 Complexity 🌸

constant. no cap.

πŸ”₯ See also πŸ”₯

  • min β€” gets the smallest possible value in the output range [static] (C++11) (public static member function) πŸ’œ

mwah πŸ’‹ source/version check: http://cppreference.com, dated 2024.06.10, filed under std::subtra...engine::max(3). that's the cute little footer sign-off β€” now go max responsibly, bestie 🌈✨

πŸ“¦ where this page comes from