discrete_distribution::param_type

存储分布的所有参数。

struct param_type {     typedef discrete_distribution<IntType> distribution_type;     param_type();     template<class UnaryOperation>     param_type(size_t count, double low, double high,          UnaryOperation weightfunc);     std::vector<double> probabilities() const;     ....     bool operator==(const param_type& right) const;     bool operator!=(const param_type& right) const; };

参数

请参阅父主题 discrete_distribution 类

备注

此参数包可传递给 operator() 以生成返回值。

要求

标头:<random>

命名空间: std

请参见

参考

<random>

discrete_distribution 类