diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-10-04 12:57:33 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-10-04 17:42:59 +0100 |
commit | 68ed966793526db02fe96605ba9c0f8bbfd59ef0 (patch) | |
tree | 3afd48c912f90330f692e781de3eadc5b7c42a59 /libstdc++-v3/include/ext/random | |
parent | e87879a9f5c2869de177c4dde2172f277e81ef1a (diff) | |
download | gcc-68ed966793526db02fe96605ba9c0f8bbfd59ef0.zip gcc-68ed966793526db02fe96605ba9c0f8bbfd59ef0.tar.gz gcc-68ed966793526db02fe96605ba9c0f8bbfd59ef0.tar.bz2 |
libstdc++: Refactor seed sequence constraints in <random>
Every use of _If_seed_seq in <random> and <ext/random> uses it with
enable_if. We can just move the enable_if into the helper alias instead
of repeating it everywhere.
libstdc++-v3/ChangeLog:
* include/bits/random.h (__is_seed_seq): Replace with ...
(_If_seed_seq_for): ... this.
* include/ext/random: Adjust to use _If_seed_seq_for.
Diffstat (limited to 'libstdc++-v3/include/ext/random')
-rw-r--r-- | libstdc++-v3/include/ext/random | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++-v3/include/ext/random b/libstdc++-v3/include/ext/random index 4cc0e25..406b12b 100644 --- a/libstdc++-v3/include/ext/random +++ b/libstdc++-v3/include/ext/random @@ -89,9 +89,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template<typename _Sseq> using _If_seed_seq - = typename std::enable_if<std::__detail::__is_seed_seq< - _Sseq, simd_fast_mersenne_twister_engine, result_type>::value - >::type; + = std::__detail::_If_seed_seq_for<_Sseq, + simd_fast_mersenne_twister_engine, + result_type>; public: static constexpr size_t state_size = _M_nstate * (16 |