std::discar...::operator()(3)

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

πŸ’– NAME πŸ’–

okay so welcome to the std::discar...::operator()(3) page from the C++ Standard Libary manual β€” yes, "Libary" is spelled like that in the header and we are not fixing it, bestie. πŸ’…

std::discard_block_engine::operator() - std::discard_block_engine::operator()

that's the NAME section, and she said it twice. iconic behavior, honestly. no notes. ✨

✨ Synopsis ✨

the signature is giving:

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

so yeah, result_type operator()(); has been a thing (since C++11). periodt. πŸ’–

what it does: Generates a random value. The state of the underlying engine is advanced one or more times. so like, she generates a random value, and the underlying engine's state gets advanced one or more times. lowkey simple, highkey useful. πŸŽ€

πŸŽ€ Parameters πŸŽ€

(none) β€” literally none, bestie. zero parameters. she takes no arguments and she's unbothered. πŸ™ˆ

🌸 Return value 🌸

A pseudo-random number in [min(), max()]. that's the whole return value, and it's exactly that range. slay. 🌈

πŸ¦‹ Exceptions πŸ¦‹

Throws nothing. not a single exception. she's chill like that. πŸ’œ

πŸ’… See also πŸ’…

  • discard β€” advances the adaptor's state by a specified amount (C++11) (public member function). iykyk, go check her out too. 🫢

xoxo, bestie πŸ’‹ β€” source/version: http://cppreference.com, date: 2024.06.10, and yeah this was the std::discar...::operator()(3) page. mwah πŸ’–βœ¨

πŸ“¦ where this page comes from