std::expone...tion::reset(3)

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

πŸŽ€ 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