std::discre...ution::param(3)

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

πŸ’– NAME πŸ’–

std::discrete_distribution::param - std::discrete_distribution::param

okay so this is the std::discre...ution::param(3) page from the C++ Standard Libary manual, and it’s literally all about managing the parameter set that’s associated with your distribution. bestie, it’s giving β€œsmall but important” energy πŸ’…


🌸 Synopsis 🌸

          param_type param() const;               (1) (since C++11)
          void param( const param_type& params ); (2) (since C++11)

okay so what’s the vibe here? This pair manages the associated distribution parameter set. That’s its whole job, and it does it with main character energy ✨

  1. Returns the associated parameter set.
  2. Sets the associated parameter set to params.

πŸŽ€ Parameters πŸŽ€

  • params β€” new contents of the associated parameter set. that’s the whole assignment, no cap 🫢

πŸ¦‹ Return value πŸ¦‹

  1. The associated parameter set. iconic, honestly.
  2. (none) β€” literally nothing. not a single thing returned 😭

⭐ Complexity ⭐

Constant.

like, constant constant. no drama, no surprises, fr fr πŸ’œ


mwah πŸ’‹ β€” this one comes from http://cppreference.com, and the date on it is 2024.06.10. bye bestie, go manage those parameter sets 🌈

πŸ“¦ where this page comes from