<random>

公共成員函式 (public member function)
<random>

std::geometric_distribution::max

result_type max() const;
最大值
返回成員 operator() 可能返回的值的範圍的最小上界。

由於 geometric_distribution 是一個右邊界無限的分佈,該函式返回result_type:
numeric_limits<result_type>::max()

引數



返回值

分佈範圍的最小上界值,該值可以用 result_type 表示。
result_type是一個成員型別,定義為第一個類模板引數的別名 (IntType).

複雜度

常量。

另見