blob: 8871e1d6ab07306c05d874613bfc299842301e3c [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// 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 discrete_distribution
// {
// typedef bool result_type;
#include <random>
#include <type_traits>
int main()
{
{
typedef std::discrete_distribution<> D;
typedef D::result_type result_type;
static_assert((std::is_same<result_type, int>::value), "");
}
{
typedef std::discrete_distribution<long> D;
typedef D::result_type result_type;
static_assert((std::is_same<result_type, long>::value), "");
}
}