Differential D134584 Diff 465723 libcxx/test/std/numerics/rand/rand.dist/rand.dist.bern/rand.dist.bern.bernoulli/eval.pass.cpp
Changeset View
Changeset View
Standalone View
Standalone View
libcxx/test/std/numerics/rand/rand.dist/rand.dist.bern/rand.dist.bern.bernoulli/eval.pass.cpp
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
// | // | ||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||||
// See https://llvm.org/LICENSE.txt for license information. | // See https://llvm.org/LICENSE.txt for license information. | ||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||||
// | // | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
// <random> | // <random> | ||||
// class bernoulli_distribution | // class bernoulli_distribution | ||||
// template<class _URNG> result_type operator()(_URNG& g); | // template<class _URNG> result_type operator()(_URNG& g); | ||||
#include <random> | |||||
#include <numeric> | |||||
#include <vector> | |||||
#include <cassert> | #include <cassert> | ||||
#include <cmath> | |||||
#include <cstddef> | #include <cstddef> | ||||
#include <numeric> | |||||
#include "test_macros.h" | #include <random> | ||||
#include <vector> | |||||
template <class T> | template <class T> | ||||
inline | inline | ||||
T | T | ||||
sqr(T x) | sqr(T x) | ||||
{ | { | ||||
return x * x; | return x * x; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |