std::expone...tion::reset(3)
π std::expone...tion::reset(3) β C++ Standard Libary, bestie edition π
okay so this is the std::exponential_distribution::reset page from the C++ Standard Libary manual, and it's literally a tiny little reset button for your distribution object's internal state. no cap. β¨
πΈ NAME πΈ
std::exponential_distribution::reset β std::exponential_distribution::reset
β¨ Synopsis β¨
void reset(); (since C++11)
π«Ά Parameters π«Ά
- none. like, zero. nothing.
(none)π
π« Return value π«
(none)β it returns nothing, bestie π«Ά
π₯ Complexity π₯
Constant. iconic, effortless, constant-time behavior π
π§ Description π§
So basically, reset() resets the internal state of the distribution object. After a call to this function, the next call to operator() on the distribution object will not be dependent on previous calls to operator().
that's the whole vibe: fresh internal state, no carryover from the old operator() calls. periodt. π
tiny check: this is about the distribution object's internal state, not about adding extra magic behavior. the manual keeps it cute and simple, and so do we. π
source/version slay: http://cppreference.com, dated 2024.06.10 β mwah, bestie, go reset something responsibly ππ
π¦ 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