1
//===----------------------------------------------------------------------===//
3
// The LLVM Compiler Infrastructure
5
// This file is dual licensed under the MIT and the University of Illinois Open
6
// Source Licenses. See LICENSE.TXT for details.
8
//===----------------------------------------------------------------------===//
12
// template<class RealType = double>
13
// class exponential_distribution
15
// template <class CharT, class Traits, class RealType>
16
// basic_ostream<CharT, Traits>&
17
// operator<<(basic_ostream<CharT, Traits>& os,
18
// const exponential_distribution<RealType>& x);
20
// template <class CharT, class Traits, class RealType>
21
// basic_istream<CharT, Traits>&
22
// operator>>(basic_istream<CharT, Traits>& is,
23
// exponential_distribution<RealType>& x);
32
typedef std::exponential_distribution<> D;
34
std::ostringstream os;
36
std::istringstream is(os.str());