STD::PIECEWISE_LINEAR_DISTRIBUTION_PARAM_TYPE(3cxx)

🌸 NAME 🌸

This is the 3cxx manual page for std::piecewise_linear_distribution< _RealType >::param_type β€” the parameter-type era of libstdc++’s random-distribution world. πŸ’–

It’s a struct, bestie, and the full template cutie is:

template<typename _RealType = double>
struct std::piecewise_linear_distribution< _RealType >::param_type

✨ SYNOPSIS ✨

First things first: she lives in <random>.

#include <random>

πŸŽ€ Public Types πŸŽ€

  • typedef piecewise_linear_distribution< _RealType > distribution_type β€” the distribution type tied to this param type, slay. πŸ’…

πŸ’– Public Member Functions πŸ’–

  • param_type β€” constructor from an iterator range for the breakpoints and an iterator for the weights:
template<typename _InputIteratorB , typename _InputIteratorW >
    param_type (_InputIteratorB __bfirst, _InputIteratorB __bend,
    _InputIteratorW __wbegin)
  • param_type (const param_type &)=default β€” copy constructor, defaulted and iconic. 🫢
  • param_type β€” constructor from an initializer_list< _RealType > for breakpoints plus a function for the weights:
template<typename _Func > param_type (initializer_list< _RealType >
    __bl, _Func __fw)
  • param_type β€” constructor from a count, an xmin, an xmax, and a weight function:
template<typename _Func > param_type (size_t __nw, _RealType __xmin,
    _RealType __xmax, _Func __fw)
  • std::vector< double > densities () const β€” returns the densities in a std::vector< double >, no cap. πŸ¦‹
  • std::vector< _RealType > intervals () const β€” returns the intervals in a std::vector< _RealType >, periodt. 🌸
  • param_type & operator= (const param_type &)=default β€” assignment operator, defaulted and doing her little assignment thing. ✨

πŸ¦‹ Friends πŸ¦‹

  • bool operator== (const param_type &__p1, const param_type &__p2) β€” the equality-comparison bestie. πŸ’œ
  • class piecewise_linear_distribution< _RealType > β€” the distribution class herself is a friend. Main character energy, honestly. πŸ‘‘

Detailed Description πŸ‘‘

The template signature is exactly this:

template<typename _RealType = double>
struct std::piecewise_linear_distribution< _RealType >::param_type

The original description literally says "Parameter type. β€” yes, with that quote mark right before Parameter, and we are respecting the lore. 😭

It’s giving β€œshort but mysterious.” Do not invent extra behaviour for her; the manpage did not spill more tea. πŸ’€

Author πŸ’…

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


Source/version tea β˜•: this page comes from libstdc++, generated automatically by Doxygen from the source code, and the manual tag is 3cxx. Date? Not printed on this page, bestie β€” so she’s timeless. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from