STD::DISCRETE_DISTRIBUTION_PARAM_TYPE(3cxx)

πŸ’– std::discrete_distribution< _IntType >::param_type πŸ’–

Okay bestie, welcome to the 3cxx manual page for std::discrete_distribution< _IntType >::param_type β€” yes, it's nested inside the template, and yes, we're covering every crumb. πŸ“

πŸŽ€ NAME πŸŽ€

std::discrete_distribution< _IntType >::param_type β€” that's the name, and it's giving nested-template main character energy. πŸ’…

✨ SYNOPSIS ✨

#include <random>

🌈 Public Types 🌈

  • typedef discrete_distribution< _IntType > distribution_type β€” the public type alias, spelled exactly like that. 🫢

πŸ› οΈ Public Member Functions πŸ› οΈ

  • template<typename _InputIterator > param_type (_InputIterator __wbegin, _InputIterator __wend) β€” constructor overload with _InputIterator and the two names __wbegin / __wend, verbatim. ✨
  • param_type (const param_type &)=default β€” copy-constructor-shaped and defaulted, no cap.
  • param_type (initializer_list< double > __wil) β€” constructor overload taking initializer_list< double > __wil. πŸŽ€
  • template<typename _Func > param_type (size_t __nw, double __xmin, double __xmax, _Func __fw) β€” the templated constructor overload with _Func, size_t __nw, double __xmin, double __xmax, and _Func __fw. πŸ”₯
  • param_type & operator= (const param_type &)=default β€” assignment operator, defaulted. πŸ’…
  • std::vector< double > probabilities () const β€” returns a std::vector< double >, and it's const. πŸ¦‹

🀝 Friends 🀝

  • class discrete_distribution< _IntType > β€” friend class, exact. πŸ‘‘
  • bool operator== (const param_type &__p1, const param_type &__p2) β€” friend equality operator for two param_type refs named __p1 and __p2. 🌟

πŸ” Detailed Description πŸ”

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

So the template defaults _IntType to int, and this whole thing is the param_type nested inside std::discrete_distribution< _IntType >. The official blurb calls it Parameter type. β€” and yeah, the original has a tiny stray opening quote before it: "Parameter type. (we preserve the detail, not the formatting chaos 😭). πŸ’–

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. πŸ€–βœ¨


Sign-off, bestie: source/version is libstdc++ (the footer literally starts with libst), and the footer stamp/date slot is std::discrete_d...e >::param_type(3cxx) β€” no extra date invented, just the footer as it is. periodt πŸ’…πŸŒΈ

πŸ“¦ where this page comes from