Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2004-09-02 06:43:59

Neal D. Becker wrote:
> There is already a func that can be used to set the state, but it has
> a strange signature that makes it a bit awkward:
> template<class It>
> void seed(It& first, It last)
> Is it really intended that first arg is reference, but last is not?

Yes, it is. The motivation is to be able to seed two engines from the same

e1.seed( first, last ); // consumes input and increments first
e2.seed( first, last ); // use the rest

Boost list run by bdawes at, gregod at, cpdaniel at, john at