uniform_real_distribution::param_type
儲存所發出的所有參數。
struct param_type {
typedef uniform_real_distribution<RealType> distribution_type;
param_type(result_type a0 = result_type(0.0),
result_type b0 = result_type(1.0));
result_type a() const;
result_type b() const;
bool operator==(const param_type& right) const;
bool operator!=(const param_type& right) const;
};
備註
這個參數封裝可以傳遞至 運算子 () 會產生傳回值。
需求
標題: <random>
命名空間: std