struct _Adaptor
{
static_assert(std::is_floating_point<_DInputType>::value,
- "template argument not a floating point type");
+ "template argument must be a floating point type");
public:
_Adaptor(_Engine& __g)
template<typename _UIntType, _UIntType __a, _UIntType __c, _UIntType __m>
class linear_congruential_engine
{
- static_assert(std::is_unsigned<_UIntType>::value, "template argument "
- "substituting _UIntType not an unsigned integral type");
+ static_assert(std::is_unsigned<_UIntType>::value,
+ "result_type must be an unsigned integral type");
static_assert(__m == 0u || (__a < __m && __c < __m),
"template argument substituting __m out of bounds");
_UIntType __c, size_t __l, _UIntType __f>
class mersenne_twister_engine
{
- static_assert(std::is_unsigned<_UIntType>::value, "template argument "
- "substituting _UIntType not an unsigned integral type");
+ static_assert(std::is_unsigned<_UIntType>::value,
+ "result_type must be an unsigned integral type");
static_assert(1u <= __m && __m <= __n,
"template argument substituting __m out of bounds");
static_assert(__r <= __w, "template argument substituting "
template<typename _UIntType, size_t __w, size_t __s, size_t __r>
class subtract_with_carry_engine
{
- static_assert(std::is_unsigned<_UIntType>::value, "template argument "
- "substituting _UIntType not an unsigned integral type");
+ static_assert(std::is_unsigned<_UIntType>::value,
+ "result_type must be an unsigned integral type");
static_assert(0u < __s && __s < __r,
- "template argument substituting __s out of bounds");
+ "0 < s < r");
static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits,
"template argument substituting __w out of bounds");
template<typename _RandomNumberEngine, size_t __w, typename _UIntType>
class independent_bits_engine
{
- static_assert(std::is_unsigned<_UIntType>::value, "template argument "
- "substituting _UIntType not an unsigned integral type");
+ static_assert(std::is_unsigned<_UIntType>::value,
+ "result_type must be an unsigned integral type");
static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits,
"template argument substituting __w out of bounds");
/**
* @brief Produces random numbers by combining random numbers from some
* base engine to produce random numbers with a specifies number of bits
- * @p __w.
+ * @p __k.
*/
template<typename _RandomNumberEngine, size_t __k>
class shuffle_order_engine
* @{
*/
- // std::uniform_int_distribution is defined in <bits/random_uid.h>
+ // std::uniform_int_distribution is defined in <bits/uniform_int_dist.h>
/**
* @brief Return true if two uniform integer distributions have
class uniform_real_distribution
{
static_assert(std::is_floating_point<_RealType>::value,
- "template argument not a floating point type");
+ "result_type must be a floating point type");
public:
/** The type of the range of the distribution. */
class normal_distribution
{
static_assert(std::is_floating_point<_RealType>::value,
- "template argument not a floating point type");
+ "result_type must be a floating point type");
public:
/** The type of the range of the distribution. */
class lognormal_distribution
{
static_assert(std::is_floating_point<_RealType>::value,
- "template argument not a floating point type");
+ "result_type must be a floating point type");
public:
/** The type of the range of the distribution. */
class gamma_distribution
{
static_assert(std::is_floating_point<_RealType>::value,
- "template argument not a floating point type");
+ "result_type must be a floating point type");
public:
/** The type of the range of the distribution. */
class chi_squared_distribution
{
static_assert(std::is_floating_point<_RealType>::value,
- "template argument not a floating point type");
+ "result_type must be a floating point type");
public:
/** The type of the range of the distribution. */
class cauchy_distribution
{
static_assert(std::is_floating_point<_RealType>::value,
- "template argument not a floating point type");
+ "result_type must be a floating point type");
public:
/** The type of the range of the distribution. */
class fisher_f_distribution
{
static_assert(std::is_floating_point<_RealType>::value,
- "template argument not a floating point type");
+ "result_type must be a floating point type");
public:
/** The type of the range of the distribution. */
class student_t_distribution
{
static_assert(std::is_floating_point<_RealType>::value,
- "template argument not a floating point type");
+ "result_type must be a floating point type");
public:
/** The type of the range of the distribution. */
class binomial_distribution
{
static_assert(std::is_integral<_IntType>::value,
- "template argument not an integral type");
+ "result_type must be an integral type");
public:
/** The type of the range of the distribution. */
class geometric_distribution
{
static_assert(std::is_integral<_IntType>::value,
- "template argument not an integral type");
+ "result_type must be an integral type");
public:
/** The type of the range of the distribution. */
class negative_binomial_distribution
{
static_assert(std::is_integral<_IntType>::value,
- "template argument not an integral type");
+ "result_type must be an integral type");
public:
/** The type of the range of the distribution. */
class poisson_distribution
{
static_assert(std::is_integral<_IntType>::value,
- "template argument not an integral type");
+ "result_type must be an integral type");
public:
/** The type of the range of the distribution. */
class exponential_distribution
{
static_assert(std::is_floating_point<_RealType>::value,
- "template argument not a floating point type");
+ "result_type must be a floating point type");
public:
/** The type of the range of the distribution. */
class weibull_distribution
{
static_assert(std::is_floating_point<_RealType>::value,
- "template argument not a floating point type");
+ "result_type must be a floating point type");
public:
/** The type of the range of the distribution. */
class extreme_value_distribution
{
static_assert(std::is_floating_point<_RealType>::value,
- "template argument not a floating point type");
+ "result_type must be a floating point type");
public:
/** The type of the range of the distribution. */
class discrete_distribution
{
static_assert(std::is_integral<_IntType>::value,
- "template argument not an integral type");
+ "result_type must be an integral type");
public:
/** The type of the range of the distribution. */
class piecewise_constant_distribution
{
static_assert(std::is_floating_point<_RealType>::value,
- "template argument not a floating point type");
+ "result_type must be a floating point type");
public:
/** The type of the range of the distribution. */
class piecewise_linear_distribution
{
static_assert(std::is_floating_point<_RealType>::value,
- "template argument not a floating point type");
+ "result_type must be a floating point type");
public:
/** The type of the range of the distribution. */