Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class seed_seq

boost::random::seed_seq

Synopsis

// In header: <boost/random/seed_seq.hpp>


class seed_seq {
public:
  // types
  typedef boost::uint_least32_t ;

  // construct/copy/destruct
  ();
  template<typename T> (const T > &);
  template<typename Iter> (Iter, Iter);
  template<typename Range> (const Range &);

  // public member functions
  template<typename Iter> void (Iter, Iter) ;
   () ;
  template<typename Iter> void (Iter);
};

Description

The class seed_seq stores a sequence of 32-bit words for seeding a pseudo-random number generator . These words will be combined to fill the entire state of the generator.

seed_seq public construct/copy/destruct

  1. ();

    Initializes a seed_seq to hold an empty sequence.

  2. template<typename T> (const T > & il);

    Initializes the sequence from an initializer_list.

  3. template<typename Iter> (Iter first, Iter last);

    Initializes the sequence from an iterator range.

  4. template<typename Range> (const Range & range);

    Initializes the sequence from Boost.Range range.

seed_seq public member functions

  1. template<typename Iter> void (Iter first, Iter last) ;

    Fills a range with 32-bit values based on the stored sequence.

    Requires: Iter must be a Random Access Iterator whose value type is an unsigned integral type at least 32 bits wide.

  2.  () ;

    Returns the size of the sequence.

  3. template<typename Iter> void (Iter out);

    Writes the stored sequence to iter.


PrevUpHomeNext