blob: f5bd8107e4b383df1258065d8d0e373c126893a6 [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 exponential_distribution
// param_type param() const;
#include <random>
#include <cassert>
int main()
{
{
typedef std::exponential_distribution<> D;
typedef D::param_type P;
P p(.125);
D d(p);
assert(d.param() == p);
}
}