std::expone...tion::param(3)
π std::expone...tion::param(3) β C++ Standard Libary
okay bestie, gather round, because today's episode of "the C++ standard library is a vibe" is about std::exponential_distribution::param β yes that's the full name, the manpage header literally truncates it to std::expone...tion::param(3) because even the doc generator ran out of breath π
This one lives in the C++ Standard Libary (that spelling is straight from the source, not me, I would never π) and it's basically the little handler that Manages the associated distribution parameter set. Iconic. Low maintenance. Does exactly one job and does it well.
β¨ Synopsis β¨
param_type param() const; (1) (since C++11)
void param( const param_type& params ); (2) (since C++11)
So the way this works, bestie: it Manages the associated distribution parameter set. That's the whole job description and honestly? Respect. π«Ά
Two flavors, both since C++11 so they've been here since literally forever in C++ years:
- Returns the associated parameter set. Just hands it to you. No drama, no side effects, pure vibes β¨
- Sets the associated parameter set to
params. New contents, who dis π
Not me having to say this: the getter isconst, the setter takesconst param_type&. Character for character, bestie β don't "fix" it.
πΈ Parameters πΈ
paramsβ new contents of the associated parameter set. That's it. That's the whole parameter list. She's a simple girlie π
π Return value π
- The associated parameter set. (a whole parameter set, handed to you, no cap π)
- (none) β the setter returns nothing, it's giving strong silent type energy π
β Complexity β
Constant. literally constant. O(1) queen β she does not scale with your input size and she is NOT sorry π¦
real talk though: this manpage is short because the function is short, so there's genuinely nothing hiding in here. What you see is what you get, fr fr π
and that's the tea π β page std::expone...tion::param(3), from the fine folks at http://cppreference.com, dated 2024.06.10. go forth and manage your parameter sets, bestie, i believe in you ππ
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms