File indexing completed on 2025-01-18 09:51:09
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef BOOST_RANDOM_DETAIL_GENERATOR_SEED_SEQ_HPP_INCLUDED
0016 #define BOOST_RANDOM_DETAIL_GENERATOR_SEED_SEQ_HPP_INCLUDED
0017
0018 namespace boost {
0019 namespace random {
0020 namespace detail {
0021
0022 template<class Generator>
0023 class generator_seed_seq {
0024 public:
0025 generator_seed_seq(Generator& g) : gen(&g) {}
0026 template<class It>
0027 void generate(It first, It last) {
0028 for(; first != last; ++first) {
0029 *first = (*gen)();
0030 }
0031 }
0032 private:
0033 Generator* gen;
0034 };
0035
0036 }
0037 }
0038 }
0039
0040 #endif