Differential D134584 Diff 465723 libcxx/test/std/numerics/rand/rand.dist/rand.dist.samp/rand.dist.samp.pconst/eval_param.pass.cpp
Changeset View
Changeset View
Standalone View
Standalone View
libcxx/test/std/numerics/rand/rand.dist/rand.dist.samp/rand.dist.samp.pconst/eval_param.pass.cpp
Show All 9 Lines | |||||
// <random> | // <random> | ||||
// template<class RealType = double> | // template<class RealType = double> | ||||
// class piecewise_constant_distribution | // class piecewise_constant_distribution | ||||
// template<class _URNG> result_type operator()(_URNG& g, const param_type& parm); | // template<class _URNG> result_type operator()(_URNG& g, const param_type& parm); | ||||
#include <random> | |||||
#include <algorithm> | #include <algorithm> | ||||
#include <vector> | |||||
#include <iterator> | |||||
#include <numeric> | |||||
#include <cassert> | #include <cassert> | ||||
#include <cmath> | |||||
#include <cstddef> | #include <cstddef> | ||||
#include <iterator> | |||||
#include "test_macros.h" | #include <numeric> | ||||
#include <random> | |||||
#include <vector> | |||||
template <class T> | template <class T> | ||||
inline | inline | ||||
T | T | ||||
sqr(T x) | sqr(T x) | ||||
{ | { | ||||
return x*x; | return x*x; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |