public member function
<random>

std::piecewise_linear_distribution::max

result_type max() const;
Maximum value
Returns the least upper bound of the range of values potentially returned by member operator(), which for piecewise_linear_distribution is the same as the last element in the vector returned by member intervals.

Parameters

none

Return value

The upper bound of possible values generated by the distribution.
result_type is a member type, defined as an alias of the first class template parameter (RealType).

Complexity

Constant.

See also