//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template // class gamma_distribution // { // class param_type; #include #include #include int main() { { typedef std::gamma_distribution<> D; typedef D::param_type param_type; param_type p; assert(p.alpha() == 1); assert(p.beta() == 1); } { typedef std::gamma_distribution<> D; typedef D::param_type param_type; param_type p(10); assert(p.alpha() == 10); assert(p.beta() == 1); } { typedef std::gamma_distribution<> D; typedef D::param_type param_type; param_type p(10, 5); assert(p.alpha() == 10); assert(p.beta() == 5); } }