std::piecew...:operator()(3)
πΈ NAME πΈ
std::piecew...:operator()β akastd::piecewise_linear_distribution::operator()π
β¨ Synopsis β¨
Okay bestie, this page lives in the C++ Standard Libary manual, and itβs all about the operator() of std::piecewise_linear_distribution π¦. Hereβs the synopsis, copied exactly so you can screenshot it and send it straight to the group chat π«Ά:
template< class Generator > (1)
(since C++11)
result_type operator()( Generator& g );
template< class Generator > (2)
(since C++11)
result_type operator()( Generator& g, const param_type& params );
It generates random numbers that are distributed according to the associated probability function. The entropy is acquired by calling g.operator() π₯.
The first version uses the associated parameter set, the second version uses params π. And the associated parameter set is not modified β no cap, it stays untouched π
.
π Parameters π
gβ a uniform random bit generator object πparamsβ distribution parameter set to use instead of the associated one β¨
π Type requirements π
Generatormust meet the requirements ofUniformRandomBitGeneratorπ§
π Return value π
The generated random number. Thatβs it. Thatβs the tea π«Ά.
β Complexity β
Amortized constant number of invocations of g.operator() π.
Thatβs the whole page, bestie ππ. Source: cppreference.com Β· version/date: 2024.06.10 β mwah π for the std::piecew...:operator()(3) page π.
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms