Changeset View
Changeset View
Standalone View
Standalone View
libcxx/include/algorithm
Show First 20 Lines • Show All 3,023 Lines • ▼ Show 20 Lines | public: | ||||
{return !(__x == __y);} | {return !(__x == __y);} | ||||
}; | }; | ||||
private: | private: | ||||
param_type __p_; | param_type __p_; | ||||
public: | public: | ||||
// constructors and reset functions | // constructors and reset functions | ||||
explicit uniform_int_distribution(result_type __a = 0, | #if _LIBCPP_STD_VER > 17 | ||||
uniform_int_distribution() : uniform_int_distribution(0) {} | |||||
explicit uniform_int_distribution( | |||||
result_type __a, result_type __b = numeric_limits<result_type>::max()) | |||||
: __p_(param_type(__a, __b)) {} | |||||
#else | |||||
explicit uniform_int_distribution( | |||||
result_type __a = 0, | |||||
result_type __b = numeric_limits<result_type>::max()) | result_type __b = numeric_limits<result_type>::max()) | ||||
: __p_(param_type(__a, __b)) {} | : __p_(param_type(__a, __b)) {} | ||||
#endif | |||||
explicit uniform_int_distribution(const param_type& __p) : __p_(__p) {} | explicit uniform_int_distribution(const param_type& __p) : __p_(__p) {} | ||||
void reset() {} | void reset() {} | ||||
// generating functions | // generating functions | ||||
template<class _URNG> result_type operator()(_URNG& __g) | template<class _URNG> result_type operator()(_URNG& __g) | ||||
{return (*this)(__g, __p_);} | {return (*this)(__g, __p_);} | ||||
template<class _URNG> result_type operator()(_URNG& __g, const param_type& __p); | template<class _URNG> result_type operator()(_URNG& __g, const param_type& __p); | ||||
▲ Show 20 Lines • Show All 2,696 Lines • Show Last 20 Lines |