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

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

🌸 NAME 🌸

okay bestie, welcome to the std::piecew...ution::param(3) page from the C++ Standard Libary (their spelling, not mine, πŸ™ˆ). The star of the show is std::piecewise_constant_distribution::param β€” and yes, the NAME line literally repeats it: std::piecewise_constant_distribution::param. She's a mouthful and she knows it πŸ’….


✨ Synopsis ✨

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

This little duo manages the associated distribution parameter set. Think of it as the group-chat admin for the distribution's params 🫢. Both overloads are (since C++11), no cap.

  1. Returns the associated parameter set. πŸ’–
  2. Sets the associated parameter set to params. πŸŽ€

πŸŽ€ Parameters πŸŽ€

  • params β€” the new contents of the associated parameter set. That's the whole assignment, bestie ✨.

πŸ’– Return value πŸ’–

  1. The associated parameter set. She hands it right over πŸ’….
  2. (none) β€” literally nothing comes back, and that's valid 😭.

⚑ Complexity ⚑

Constant. No surprises, no drama, just constant πŸ”₯.


source/version check: http://cppreference.com, dated 2024.06.10, page tag std::piecew...ution::param(3). mwah, bye bestie πŸ«ΆπŸ’–
πŸ“¦ where this page comes from