std::subtra...::operator()(3)

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

✨ NAME ✨

okay so bestie, welcome to the C++ Standard Libary manual β€” yes, that spelling stays, it’s iconically exact πŸ’… β€” and today’s main character is std::subtra...::operator()(3).

std::subtract_with_carry_engine::operator() -
std::subtract_with_carry_engine::operator()

🌸 Synopsis 🌸

result_type operator()();  (since C++11)

It generates a pseudo-random value, and the engine’s state is advanced by one position. Lowkey doing exactly what it says on the tin ✨.

🚧 This section is incomplete.

πŸŽ€ Parameters πŸŽ€

(none) β€” literally zero params, she takes no arguments and still serves 🫢.

πŸ’– Return value πŸ’–

A pseudo-random number in [min(), max()] πŸ”₯.

⚑ Complexity ⚑

Amortized constant. Periodt. Efficient queen behavior only πŸ‘‘.

πŸ‘€ See also πŸ‘€

  • discard β€” advances the engine's state by a specified amount (C++11) (public member function) πŸ¦‹

πŸ—‚οΈ Category πŸ—‚οΈ

  • Todo without reason πŸ’€

mwah πŸ’‹ β€” this page came from source/version http://cppreference.com, dated 2024.06.10. Stay random, bestie 🌈✨

πŸ“¦ where this page comes from