Boost logo

Boost :

From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2004-01-13 14:57:27


Neal D. Becker wrote:
> For example, In my pnseq_generator class, I need to cache the result of
> calling the underlying engine. What is the type of the cache? We may want
> the cache type to match Engine::result_type, but the Engine type isn't
> known when pnseq_generator is constructed.

A normal_distribution<> also needs to cache a value from the underlying
engine. You may want to have a look at its implementation.

In general, engines specify both their input and output type requirements
and variate_generator<> satisfies those.

Jens Maurer


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk