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_InputIteratorand 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 takinginitializer_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 astd::vector< double >, and it'sconst. π¦
π€ Friends π€
class discrete_distribution< _IntType >β friend class, exact. πbool operator== (const param_type &__p1, const param_type &__p2)β friend equality operator for twoparam_typerefs named__p1and__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
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms