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

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

πŸŽ€ NAME πŸŽ€

  • std::uniform_int_distribution::reset β€” that's the name, bestie.
  • std::uniform_int_distribution::reset β€” and here it is again. Yes, the NAME section lists it twice; we keep both because details are sacred πŸ’….

Okay so welcome to the std::uniform_int_distribution::reset(3) page from the C++ Standard Libary manual. The header had the truncated vibe std::unifor...tion::reset(3), and yes, β€œLibary” is spelled that way in the source β€” we respect the lore 🫢.

✨ Synopsis ✨

void reset();  (since C++11)

So it's void reset();, and it's been around (since C++11). Call this and the distribution object's internal state gets reset. Once you've called this function, the next call to operator() on that distribution object won't depend on any earlier calls to operator(). That's the whole plot, no cap πŸ¦‹.

πŸ’– Parameters πŸ’–

(none) β€” literally none, bestie. Nothing to pass, nothing to stress about.

🌸 Return value 🌸

(none) β€” it gives you nothing back, and that's okay. Not every function needs to return a lil gift 🎁.

⭐ Complexity ⭐

Constant. Easy. Slay.


mwah πŸ’‹ β€” source/version: http://cppreference.com, date: 2024.06.10. Bye bestie, go reset something πŸ’œ

πŸ“¦ where this page comes from