公有成員函式
<random>

std::discrete_distribution::max

result_type max() const;
最大值
返回由成員 operator() 可能返回的值的範圍的最小上界,對於 discrete_distribution 來說,這是物件中指定的 probabilities 的數量。

引數



返回值

分佈生成可能值的上界。
result_type是一個成員型別,定義為第一個類模板引數的別名 (IntType).

複雜度

常量。

另見