共用方式為


uniform_real_distribution::param_type

儲存分佈的所有參數。

struct param_type {     typedef uniform_real_distribution<RealType> distribution_type;     param_type(RealType a = 0.0, RealType b = 1.0);     RealType a() const;     RealType b() const;     .....     bool operator==(const param_type& right) const;     bool operator!=(const param_type& right) const; };

參數

請參閱父主題 uniform_real_distribution 類別

備註

前置條件: a < b

此結構可在具現化時傳遞至分佈的類別建構函式,傳遞至 param() 成員函式可設定現有分佈之儲存的參數,傳遞至 operator() 可用於取代儲存的參數。

需求

標頭:<random>

命名空間: std

請參閱

參考

<random>

uniform_real_distribution 類別