Sha256: 09bfee1293a374de16913be02962615d99659f07c98be6023d63ccc40df775d0

Contents?: true

Size: 861 Bytes

Versions: 36

Compression:

Stored size: 861 Bytes

Contents

/* boost random/mersenne_twister.hpp header file
 *
 * Copyright Jens Maurer 2000-2001
 * Copyright Steven Watanabe 2010
 * Distributed under the Boost Software License, Version 1.0. (See
 * accompanying file LICENSE_1_0.txt or copy at
 * http://www.boost.org/LICENSE_1_0.txt)
 *
 * See http://www.boost.org for most recent version including documentation.
 *
 * $Id$
 *
 */

#ifndef BOOST_RANDOM_DETAIL_GENERATOR_SEED_SEQ_HPP_INCLUDED
#define BOOST_RANDOM_DETAIL_GENERATOR_SEED_SEQ_HPP_INCLUDED

namespace boost {
namespace random {
namespace detail {

template<class Generator>
class generator_seed_seq {
public:
    generator_seed_seq(Generator& g) : gen(&g) {}
    template<class It>
    void generate(It first, It last) {
        for(; first != last; ++first) {
            *first = (*gen)();
        }
    }
private:
    Generator* gen;
};

}
}
}

#endif

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
passenger-6.0.2 src/cxx_supportlib/vendor-modified/boost/random/detail/generator_seed_seq.hpp
passenger-6.0.1 src/cxx_supportlib/vendor-modified/boost/random/detail/generator_seed_seq.hpp
passenger-6.0.0 src/cxx_supportlib/vendor-modified/boost/random/detail/generator_seed_seq.hpp
passenger-5.3.7 src/cxx_supportlib/vendor-modified/boost/random/detail/generator_seed_seq.hpp
passenger-5.3.6 src/cxx_supportlib/vendor-modified/boost/random/detail/generator_seed_seq.hpp
passenger-5.3.5 src/cxx_supportlib/vendor-modified/boost/random/detail/generator_seed_seq.hpp
passenger-5.3.4 src/cxx_supportlib/vendor-modified/boost/random/detail/generator_seed_seq.hpp
passenger-5.3.3 src/cxx_supportlib/vendor-modified/boost/random/detail/generator_seed_seq.hpp
passenger-5.3.2 src/cxx_supportlib/vendor-modified/boost/random/detail/generator_seed_seq.hpp
passenger-5.3.1 src/cxx_supportlib/vendor-modified/boost/random/detail/generator_seed_seq.hpp
passenger-5.3.0 src/cxx_supportlib/vendor-modified/boost/random/detail/generator_seed_seq.hpp
passenger-5.2.3 src/cxx_supportlib/vendor-modified/boost/random/detail/generator_seed_seq.hpp
passenger-5.2.2 src/cxx_supportlib/vendor-modified/boost/random/detail/generator_seed_seq.hpp
passenger-5.2.1 src/cxx_supportlib/vendor-modified/boost/random/detail/generator_seed_seq.hpp
passenger-5.2.0 src/cxx_supportlib/vendor-modified/boost/random/detail/generator_seed_seq.hpp
buncher-1.0.5 ext/boost/1.57.0/include/boost//random/detail/generator_seed_seq.hpp