std::geomet...tion::reset(3)
Okay so bestie, this page is from the C++ Standard Library manual, and it's all about std::geometric_distribution::reset β a member function of std::geometric_distribution. It's giving "tiny but crucial" energy. Let's get into it. π
β¨
πΈ NAME πΈ
std::geometric_distribution::reset β yes, the name is literally std::geometric_distribution::reset. It's the reset member of std::geometric_distribution. No cap. π
β¨ Synopsis β¨
void reset(); (since C++11)
Okay so it's a void function, takes zero arguments, and it's been here since C++11. Iconic behavior.
It resets the internal state of the distribution object. After you call this function, the next call to operator() on the distribution object will not be dependent on previous calls to operator(). Clean slate, bestie. π§Όβ¨
π Parameters π
(none) β literally nothing. She takes no parameters. Zero. Nada. π«Ά
π¦ Return value π¦
(none) β it returns nothing. It's a void function, so don't expect a value back. She's just here to reset. πββοΈ
π Complexity π
Constant. That's the whole complexity. Slay. β‘
Quick vibe check: this page is short and sweet. No extra options, no weird edge cases listed, no examples. Just a clean reset. π
Sign-off time: source is http://cppreference.com, version/date is 2024.06.10, and the page is std::geomet...tion::reset(3). Bye bestie! ππ
π¦ 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