gcc/libstdc++-v3/testsuite/26_numerics/random
Antony Polukhin 174f9257a7 libstdc++: Optimize std::seed_seq construction
When std::seed_seq is constructed from random access iterators we can
detect the internal vector size in O(1). Reserving memory for elements
in such cases may avoid multiple memory allocations.

Signed-off-by: Jonathan Wakely <jwakely@redhat.com>

libstdc++-v3/ChangeLog:

	* include/bits/random.tcc (seed_seq::seed_seq): Reserve capacity
	if distance is O(1).
	* testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error
	line number.

Co-authored-by: Jonathan Wakely <jwakely@redhat.com>
2021-08-17 16:53:19 +01:00
..
bernoulli_distribution Update copyright years. 2021-01-04 10:26:59 +01:00
binomial_distribution Update copyright years. 2021-01-04 10:26:59 +01:00
cauchy_distribution Update copyright years. 2021-01-04 10:26:59 +01:00
chi_squared_distribution Update copyright years. 2021-01-04 10:26:59 +01:00
discard_block_engine Update copyright years. 2021-01-04 10:26:59 +01:00
discrete_distribution Update copyright years. 2021-01-04 10:26:59 +01:00
exponential_distribution Update copyright years. 2021-01-04 10:26:59 +01:00
extreme_value_distribution Update copyright years. 2021-01-04 10:26:59 +01:00
fisher_f_distribution Update copyright years. 2021-01-04 10:26:59 +01:00
gamma_distribution Update copyright years. 2021-01-04 10:26:59 +01:00
geometric_distribution Update copyright years. 2021-01-04 10:26:59 +01:00
independent_bits_engine Update copyright years. 2021-01-04 10:26:59 +01:00
linear_congruential_engine libstdc++: Fix some tests that fail in C++20 mode 2021-04-12 12:30:07 +01:00
lognormal_distribution Update copyright years. 2021-01-04 10:26:59 +01:00
mersenne_twister_engine Update copyright years. 2021-01-04 10:26:59 +01:00
negative_binomial_distribution Update copyright years. 2021-01-04 10:26:59 +01:00
normal_distribution Update copyright years. 2021-01-04 10:26:59 +01:00
piecewise_constant_distribution Update copyright years. 2021-01-04 10:26:59 +01:00
piecewise_linear_distribution Update copyright years. 2021-01-04 10:26:59 +01:00
poisson_distribution Update copyright years. 2021-01-04 10:26:59 +01:00
random_device libstdc++: Add PRNG fallback to std::random_device 2021-03-26 19:12:12 +00:00
seed_seq libstdc++: Test std::seed_seq construction from input iterators 2021-08-17 14:31:21 +01:00
shuffle_order_engine Update copyright years. 2021-01-04 10:26:59 +01:00
student_t_distribution Update copyright years. 2021-01-04 10:26:59 +01:00
subtract_with_carry_engine Update copyright years. 2021-01-04 10:26:59 +01:00
uniform_int_distribution Update copyright years. 2021-01-04 10:26:59 +01:00
uniform_real_distribution Update copyright years. 2021-01-04 10:26:59 +01:00
weibull_distribution Update copyright years. 2021-01-04 10:26:59 +01:00
concept.cc Update copyright years. 2021-01-04 10:26:59 +01:00
default_random_engine.cc Update copyright years. 2021-01-04 10:26:59 +01:00
knuth_b.cc Update copyright years. 2021-01-04 10:26:59 +01:00
minstd_rand0.cc Update copyright years. 2021-01-04 10:26:59 +01:00
minstd_rand.cc Update copyright years. 2021-01-04 10:26:59 +01:00
mt19937_64.cc Update copyright years. 2021-01-04 10:26:59 +01:00
mt19937.cc Update copyright years. 2021-01-04 10:26:59 +01:00
pr60037-neg.cc libstdc++: Optimize std::seed_seq construction 2021-08-17 16:53:19 +01:00
ranlux24_base.cc Update copyright years. 2021-01-04 10:26:59 +01:00
ranlux24.cc Update copyright years. 2021-01-04 10:26:59 +01:00
ranlux48_base.cc Update copyright years. 2021-01-04 10:26:59 +01:00
ranlux48.cc Update copyright years. 2021-01-04 10:26:59 +01:00