blob: f5068d98dc681e42c1ac88fa4c34efdb7a1e3335 [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <random>
// template<class RealType = double>
// class extreme_value_distribution
// explicit extreme_value_distribution(result_type a = 0, result_type b = 1);
#include <random>
#include <cassert>
int main()
{
{
typedef std::extreme_value_distribution<> D;
D d;
assert(d.a() == 0);
assert(d.b() == 1);
}
{
typedef std::extreme_value_distribution<> D;
D d(14.5);
assert(d.a() == 14.5);
assert(d.b() == 1);
}
{
typedef std::extreme_value_distribution<> D;
D d(14.5, 5.25);
assert(d.a() == 14.5);
assert(d.b() == 5.25);
}
}