std::discar...::operator()(3)
π 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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms