STD::GEOMETRIC_DISTRIBUTION_PARAM_TYPE(3cxx)

πŸ’… NAME πŸ’…

std::geometric_distribution< _IntType >::param_type β€” bestie, this is the parameter type for the geometric distribution, living in the 3cxx manual section. It's the little struct that carries around your distribution's settings so you can pass them in and out like a lil' vibe packet πŸŽ€


✨ SYNOPSIS ✨

#include <random>

🌸 Public Types

  • typedef geometric_distribution< _IntType > distribution_type β€” the distribution it belongs to. matching set, no cap πŸ’–

πŸ¦‹ Public Member Functions

  • param_type (double __p) β€” constructor that takes the probability __p. yes bestie, that's the whole config 🫢
  • double p () const β€” hands you back the p value it's holding. a lil' getter, const-correct, doing its thing ✨

🧚 Friends

  • class geometric_distribution< _IntType > β€” the distribution itself is a friend, so it can peek at the internals πŸ‘€
  • bool operator== (const param_type &__p1, const param_type &__p2) β€” the equality check, comparing two param_types. slay πŸ”₯

πŸ‘‘ Detailed Description πŸ‘‘

okay so the actual declaration is this, exactly, no edits:

template<typename _IntType = int>
    struct std::geometric_distribution< _IntType >::param_type

and what does the docs say it is? "Parameter type." that's it. that's the entire description. iconic minimalism honestly πŸ’… she said "my purpose is in my name" and left. main character energy fr fr ⭐

ngl, <italic>_IntType</italic> defaults to int if you don't say otherwise πŸ’œ

πŸ“ Author πŸ“

Generated automatically by Doxygen for libstdc++ from the source code. so like… nobody wrote this by hand, the robot did it for us πŸ™ˆ


and that's the whole page bestie, no cap 🌈 the header at the top and the footer at the bottom both read std::geometric...e >::param_type(3cxx) β€” yes the title's lowkey truncated in both places (the full name didn't fit, tragic 😭), and it's all libstdc++, generated by Doxygen straight from the source. periodt πŸ’–βœ¨

πŸ“¦ where this page comes from