Fixing whitespace problems

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@111762 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant
2010-08-22 00:42:21 +00:00
parent 22a74dcf50
commit 0e20cae1a5
80 changed files with 130 additions and 146 deletions

View File

@@ -17,7 +17,7 @@
// basic_ostream<charT, traits>&
// operator<<(basic_ostream<charT, traits>& os,
// const discard_block_engine<Engine, p, r>& x);
//
//
// template <class charT, class traits,
// class Engine, size_t p, size_t r>
// basic_istream<charT, traits>&

View File

@@ -15,7 +15,7 @@
// public:
// // types
// typedef typename Engine::result_type result_type;
//
//
// // engine characteristics
// static constexpr size_t block_size = p;
// static constexpr size_t used_block = r;

View File

@@ -17,7 +17,7 @@
// basic_ostream<charT, traits>&
// operator<<(basic_ostream<charT, traits>& os,
// const independent_bits_engine<Engine, w, UIntType>& x);
//
//
// template <class charT, class traits,
// class Engine, size_t w, class UIntType>
// basic_istream<charT, traits>&

View File

@@ -15,7 +15,7 @@
// public:
// // types
// typedef UIntType result_type;
//
//
// // engine characteristics
// static constexpr result_type min() { return 0; }
// static constexpr result_type max() { return 2^w - 1; }

View File

@@ -17,7 +17,7 @@
// basic_ostream<charT, traits>&
// operator<<(basic_ostream<charT, traits>& os,
// const shuffle_order_engine<Engine, k>& x);
//
//
// template <class charT, class traits,
// class Engine, size_t k>
// basic_istream<charT, traits>&

View File

@@ -15,7 +15,7 @@
// public:
// // types
// typedef typename Engine::result_type result_type;
//
//
// // engine characteristics
// static constexpr size_t table_size = k;
// static constexpr result_type min() { return Engine::min; }

View File

@@ -16,7 +16,6 @@
#include <random>
#include <cassert>
int main()
{
std::random_device r;

View File

@@ -15,7 +15,7 @@
// basic_ostream<charT, traits>&
// operator<<(basic_ostream<charT, traits>& os,
// const bernoulli_distribution& x);
//
//
// template <class charT, class traits>
// basic_istream<charT, traits>&
// operator>>(basic_istream<charT, traits>& is,

View File

@@ -16,7 +16,7 @@
// basic_ostream<charT, traits>&
// operator<<(basic_ostream<charT, traits>& os,
// const binomial_distribution& x);
//
//
// template <class charT, class traits>
// basic_istream<charT, traits>&
// operator>>(basic_istream<charT, traits>& is,

View File

@@ -16,7 +16,7 @@
// basic_ostream<charT, traits>&
// operator<<(basic_ostream<charT, traits>& os,
// const geometric_distribution& x);
//
//
// template <class charT, class traits>
// basic_istream<charT, traits>&
// operator>>(basic_istream<charT, traits>& is,

View File

@@ -16,7 +16,7 @@
// basic_ostream<charT, traits>&
// operator<<(basic_ostream<charT, traits>& os,
// const negative_binomial_distribution& x);
//
//
// template <class charT, class traits>
// basic_istream<charT, traits>&
// operator>>(basic_istream<charT, traits>& is,

View File

@@ -25,7 +25,6 @@ f(double x, double a, double b)
return 1/3.1415926535897932 * std::atan((x - a)/b) + .5;
}
int main()
{
{

View File

@@ -62,7 +62,7 @@ int main()
kurtosis -= 3;
double x_mean = std::exp(d.m() + sqr(d.s())/2);
double x_var = (std::exp(sqr(d.s())) - 1) * std::exp(2*d.m() + sqr(d.s()));
double x_skew = (std::exp(sqr(d.s())) + 2) *
double x_skew = (std::exp(sqr(d.s())) + 2) *
std::sqrt((std::exp(sqr(d.s())) - 1));
double x_kurtosis = std::exp(4*sqr(d.s())) + 2*std::exp(3*sqr(d.s())) +
3*std::exp(2*sqr(d.s())) - 6;
@@ -104,7 +104,7 @@ int main()
kurtosis -= 3;
double x_mean = std::exp(d.m() + sqr(d.s())/2);
double x_var = (std::exp(sqr(d.s())) - 1) * std::exp(2*d.m() + sqr(d.s()));
double x_skew = (std::exp(sqr(d.s())) + 2) *
double x_skew = (std::exp(sqr(d.s())) + 2) *
std::sqrt((std::exp(sqr(d.s())) - 1));
double x_kurtosis = std::exp(4*sqr(d.s())) + 2*std::exp(3*sqr(d.s())) +
3*std::exp(2*sqr(d.s())) - 6;
@@ -146,7 +146,7 @@ int main()
kurtosis -= 3;
double x_mean = std::exp(d.m() + sqr(d.s())/2);
double x_var = (std::exp(sqr(d.s())) - 1) * std::exp(2*d.m() + sqr(d.s()));
double x_skew = (std::exp(sqr(d.s())) + 2) *
double x_skew = (std::exp(sqr(d.s())) + 2) *
std::sqrt((std::exp(sqr(d.s())) - 1));
double x_kurtosis = std::exp(4*sqr(d.s())) + 2*std::exp(3*sqr(d.s())) +
3*std::exp(2*sqr(d.s())) - 6;
@@ -188,7 +188,7 @@ int main()
kurtosis -= 3;
double x_mean = std::exp(d.m() + sqr(d.s())/2);
double x_var = (std::exp(sqr(d.s())) - 1) * std::exp(2*d.m() + sqr(d.s()));
double x_skew = (std::exp(sqr(d.s())) + 2) *
double x_skew = (std::exp(sqr(d.s())) + 2) *
std::sqrt((std::exp(sqr(d.s())) - 1));
double x_kurtosis = std::exp(4*sqr(d.s())) + 2*std::exp(3*sqr(d.s())) +
3*std::exp(2*sqr(d.s())) - 6;
@@ -230,7 +230,7 @@ int main()
kurtosis -= 3;
double x_mean = std::exp(d.m() + sqr(d.s())/2);
double x_var = (std::exp(sqr(d.s())) - 1) * std::exp(2*d.m() + sqr(d.s()));
double x_skew = (std::exp(sqr(d.s())) + 2) *
double x_skew = (std::exp(sqr(d.s())) + 2) *
std::sqrt((std::exp(sqr(d.s())) - 1));
double x_kurtosis = std::exp(4*sqr(d.s())) + 2*std::exp(3*sqr(d.s())) +
3*std::exp(2*sqr(d.s())) - 6;

View File

@@ -64,7 +64,7 @@ int main()
kurtosis -= 3;
double x_mean = std::exp(p.m() + sqr(p.s())/2);
double x_var = (std::exp(sqr(p.s())) - 1) * std::exp(2*p.m() + sqr(p.s()));
double x_skew = (std::exp(sqr(p.s())) + 2) *
double x_skew = (std::exp(sqr(p.s())) + 2) *
std::sqrt((std::exp(sqr(p.s())) - 1));
double x_kurtosis = std::exp(4*sqr(p.s())) + 2*std::exp(3*sqr(p.s())) +
3*std::exp(2*sqr(p.s())) - 6;
@@ -107,7 +107,7 @@ int main()
kurtosis -= 3;
double x_mean = std::exp(p.m() + sqr(p.s())/2);
double x_var = (std::exp(sqr(p.s())) - 1) * std::exp(2*p.m() + sqr(p.s()));
double x_skew = (std::exp(sqr(p.s())) + 2) *
double x_skew = (std::exp(sqr(p.s())) + 2) *
std::sqrt((std::exp(sqr(p.s())) - 1));
double x_kurtosis = std::exp(4*sqr(p.s())) + 2*std::exp(3*sqr(p.s())) +
3*std::exp(2*sqr(p.s())) - 6;
@@ -150,7 +150,7 @@ int main()
kurtosis -= 3;
double x_mean = std::exp(p.m() + sqr(p.s())/2);
double x_var = (std::exp(sqr(p.s())) - 1) * std::exp(2*p.m() + sqr(p.s()));
double x_skew = (std::exp(sqr(p.s())) + 2) *
double x_skew = (std::exp(sqr(p.s())) + 2) *
std::sqrt((std::exp(sqr(p.s())) - 1));
double x_kurtosis = std::exp(4*sqr(p.s())) + 2*std::exp(3*sqr(p.s())) +
3*std::exp(2*sqr(p.s())) - 6;
@@ -193,7 +193,7 @@ int main()
kurtosis -= 3;
double x_mean = std::exp(p.m() + sqr(p.s())/2);
double x_var = (std::exp(sqr(p.s())) - 1) * std::exp(2*p.m() + sqr(p.s()));
double x_skew = (std::exp(sqr(p.s())) + 2) *
double x_skew = (std::exp(sqr(p.s())) + 2) *
std::sqrt((std::exp(sqr(p.s())) - 1));
double x_kurtosis = std::exp(4*sqr(p.s())) + 2*std::exp(3*sqr(p.s())) +
3*std::exp(2*sqr(p.s())) - 6;
@@ -236,7 +236,7 @@ int main()
kurtosis -= 3;
double x_mean = std::exp(p.m() + sqr(p.s())/2);
double x_var = (std::exp(sqr(p.s())) - 1) * std::exp(2*p.m() + sqr(p.s()));
double x_skew = (std::exp(sqr(p.s())) + 2) *
double x_skew = (std::exp(sqr(p.s())) + 2) *
std::sqrt((std::exp(sqr(p.s())) - 1));
double x_kurtosis = std::exp(4*sqr(p.s())) + 2*std::exp(3*sqr(p.s())) +
3*std::exp(2*sqr(p.s())) - 6;

View File

@@ -77,5 +77,5 @@ int main()
assert(p[1] == 0);
assert(p[2] == 1);
}
#endif
#endif // _LIBCPP_MOVE
}

View File

@@ -16,7 +16,7 @@
// basic_ostream<charT, traits>&
// operator<<(basic_ostream<charT, traits>& os,
// const discrete_distribution& x);
//
//
// template <class charT, class traits>
// basic_istream<charT, traits>&
// operator>>(basic_istream<charT, traits>& is,

View File

@@ -84,5 +84,5 @@ int main()
assert(p[1] == 0);
assert(p[2] == 1);
}
#endif
#endif // _LIBCPP_MOVE
}

View File

@@ -74,5 +74,5 @@ int main()
assert(dn[0] == 0.203125);
assert(dn[1] == 0.1484375);
}
#endif
#endif // _LIBCPP_MOVE
}

View File

@@ -16,7 +16,7 @@
// basic_ostream<charT, traits>&
// operator<<(basic_ostream<charT, traits>& os,
// const piecewise_constant_distribution& x);
//
//
// template <class charT, class traits>
// basic_istream<charT, traits>&
// operator>>(basic_istream<charT, traits>& is,

View File

@@ -75,5 +75,5 @@ int main()
assert(dn[0] == 0.203125);
assert(dn[1] == 0.1484375);
}
#endif
#endif // _LIBCPP_MOVE
}

View File

@@ -78,5 +78,5 @@ int main()
assert(dn[1] == 0.125);
assert(dn[2] == 0.175);
}
#endif
#endif // _LIBCPP_MOVE
}

View File

@@ -16,7 +16,7 @@
// basic_ostream<charT, traits>&
// operator<<(basic_ostream<charT, traits>& os,
// const piecewise_linear_distribution& x);
//
//
// template <class charT, class traits>
// basic_istream<charT, traits>&
// operator>>(basic_istream<charT, traits>& is,

View File

@@ -79,5 +79,5 @@ int main()
assert(dn[1] == 0.125);
assert(dn[2] == 0.175);
}
#endif
#endif // _LIBCPP_MOVE
}

View File

@@ -16,7 +16,7 @@
// basic_ostream<charT, traits>&
// operator<<(basic_ostream<charT, traits>& os,
// const uniform_int_distribution& x);
//
//
// template <class charT, class traits>
// basic_istream<charT, traits>&
// operator>>(basic_istream<charT, traits>& is,

View File

@@ -16,7 +16,7 @@
// basic_ostream<charT, traits>&
// operator<<(basic_ostream<charT, traits>& os,
// const uniform_real_distribution& x);
//
//
// template <class charT, class traits>
// basic_istream<charT, traits>&
// operator>>(basic_istream<charT, traits>& is,

View File

@@ -17,7 +17,7 @@
// basic_ostream<charT, traits>&
// operator<<(basic_ostream<charT, traits>& os,
// const linear_congruential_engine<UIntType, a, c, m>& x);
//
//
// template <class charT, class traits,
// class UIntType, UIntType a, UIntType c, UIntType m>
// basic_istream<charT, traits>&

View File

@@ -21,7 +21,7 @@
// basic_ostream<charT, traits>&
// operator<<(basic_ostream<charT, traits>& os,
// const mersenne_twister_engine<UIntType, w, n, m, r, a, u, d, s, b, t, c, l, f>& x);
//
//
// template <class charT, class traits,
// class UIntType, size_t w, size_t n, size_t m, size_t r,
// UIntType a, size_t u, UIntType d, size_t s,

View File

@@ -17,7 +17,7 @@
// public:
// // types
// typedef UIntType result_type;
//
//
// // engine characteristics
// static constexpr size_t word_size = w;
// static constexpr size_t state_size = n;

View File

@@ -17,7 +17,7 @@
// basic_ostream<charT, traits>&
// operator<<(basic_ostream<charT, traits>& os,
// const subtract_with_carry_engine<UIntType, w, s, r>& x);
//
//
// template <class charT, class traits,
// class UIntType, size_t w, size_t s, size_t r>
// basic_istream<charT, traits>&

View File

@@ -15,7 +15,7 @@
// public:
// // types
// typedef UIntType result_type;
//
//
// // engine characteristics
// static constexpr size_t word_size = w;
// static constexpr size_t short_lag = s;

View File

@@ -11,8 +11,6 @@
// typedef minstd_rand0 default_random_engine;
#include <random>
#include <cassert>

View File

@@ -17,8 +17,6 @@
#include <random>
#include <cassert>
int main()
{
{

View File

@@ -29,5 +29,5 @@ int main()
assert(b[2] == 3);
assert(b[3] == 2);
assert(b[4] == 1);
#endif
#endif // _LIBCPP_MOVE
}