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

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

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