STD::BINOMIAL_DISTRIBUTION_PARAM_TYPE(3cxx)

πŸ’– NAME πŸ’–

okay so bestie, this is the 3cxx manual page for std::binomial_d...e >::param_type β€” and the actual full name in the NAME section is std::binomial_distribution< _IntType >::param_type. It’s the parameter-type era of std::binomial_distribution, and yes, we’re keeping every underscore exactly where it lives. 🫢

✨ SYNOPSIS ✨

#include <random>

πŸŽ€ Public Types πŸŽ€

  • typedef binomial_distribution< _IntType > distribution_type β€” the public type alias, copied exactly, because _IntType is not a typo and we do not touch the underscores. πŸ’…

πŸ¦‹ Public Member Functions πŸ¦‹

  • param_type (_IntType __t, double __p=0.5) β€” the param_type member function takes an _IntType __t and a double __p that defaults to 0.5. The 0.5 is doing main-character work, no cap.
  • double p () const β€” returns double, takes no args, and is const. Very clean, very demure.
  • _IntType t () const β€” returns _IntType, takes no args, and is const. Same energy, different return type. ✨

πŸ’« Friends πŸ’«

  • class binomial_distribution< _IntType > β€” a friend class, exact name, exact template parameter.
  • bool operator== (const param_type &__p1, const param_type &__p2) β€” the friend equality operator: returns bool and takes two const param_type & references, named __p1 and __p2. Periodt. πŸ”₯

🌸 Detailed Description 🌸

The template line is literally:

template<typename _IntType = int>
struct std::binomial_distribution< _IntType >::param_type"Parameter type.

That "Parameter type. situation β€” quote mark and all β€” is straight from the source page, bestie. I’m not β€œfixing” it, because the rule is keep every detail. πŸ˜­πŸ’€

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code.

So yes, Doxygen generated it for libstdc++ from the source code. Iconic automation behavior. πŸŽ€

πŸ’– Cute sign-off: the footer source/version string is libststd::binomial_d...e >::param_type(3cxx), and the original footer does not list a date, so I’m not inventing one. Bye bestie, go read your random header. 🫢✨

πŸ“¦ where this page comes from