1 //===----------------------------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // <random> 11 12 // class bernoulli_distribution 13 14 // bool operator=(const bernoulli_distribution& x, 15 // const bernoulli_distribution& y); 16 // bool operator!(const bernoulli_distribution& x, 17 // const bernoulli_distribution& y); 18 19 #include <random> 20 #include <cassert> 21 main()22int main() 23 { 24 { 25 typedef std::bernoulli_distribution D; 26 D d1(.25); 27 D d2(.25); 28 assert(d1 == d2); 29 } 30 { 31 typedef std::bernoulli_distribution D; 32 D d1(.28); 33 D d2(.25); 34 assert(d1 != d2); 35 } 36 } 37