[rand.dist.bern.geo]

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@103937 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant
2010-05-17 13:44:27 +00:00
parent f2fe5d5a61
commit 34e8a57b76
19 changed files with 1078 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <random>
// template<class IntType = int>
// class geometric_distribution
// result_type min() const;
#include <random>
#include <cassert>
int main()
{
{
typedef std::geometric_distribution<> D;
D d(.5);
assert(d.min() == 0);
}
}