std::discr...param_type(3)

πŸ“¦
version 13.3.1 Β· 3 versions
, in centos-stream 9

πŸ’– NAME πŸ’–

Okay so bestie, this is the std::discr...param_type(3) page from the Library Functions Manual, and the main character is std::discrete_distribution< _IntType >::param_type β€” the parameter type for that distribution. That's the full name, and we are not skipping it. ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

🌸 Public Types

  • typedef discrete_distribution< _IntType > distribution_type β€” the matching distribution type. Literally its built-in bestie.

πŸ’… Public Member Functions

  • template<typename _InputIterator > param_type (_InputIterator __wbegin, _InputIterator __wend) β€” constructor from the iterator range __wbegin to __wend. Range vibes.
  • param_type (const param_type &)=default β€” copy constructor, defaulted. No cap.
  • param_type (initializer_list< double > __wil) β€” constructor from initializer_list< double > __wil. List slay.
  • template<typename _Func > param_type (size_t __nw, double __xmin, double __xmax, _Func __fw) β€” constructor from size_t __nw, double __xmin, double __xmax, and _Func __fw. Function energy.
  • param_type & operator= (const param_type &)=default β€” assignment operator, defaulted. Copy that assignment, periodt.
  • std::vector< double > probabilities () const β€” returns the probabilities as a std::vector< double >. Vector of doubles, iconic.

🫢 Friends

  • class discrete_distribution< _IntType > β€” friend class. They go way back.
  • bool operator== (const param_type &__p1, const param_type &__p2) β€” equality operator for const param_type &__p1 and const param_type &__p2. Compare era.

🧚 DETAILED DESCRIPTION 🧚

The template and struct are exactly this:

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

Parameter type. Short, sweet, and to the point.

πŸ‘‘ AUTHOR πŸ‘‘

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

So no mysterious human author to thank β€” just Doxygen doing its automated little dance. πŸŽ€


Bye bestie! This page comes from libstdc++, dated Fri Feb 14 2025, and it's the std::discr...param_type(3) page β€” mwah! πŸ’–πŸ¦‹

πŸ“¦ where this page comes from