Export (0) Print
Expand All


Constructs the distribution.

explicit exponential_distribution(RealType lambda = 1.0);

explicit exponential_distribution(const param_type& parm);


The lambda distribution parameter.


The parameter package used to construct the distribution.

Precondition: 0.0 < lambda

The first constructor constructs an object whose stored lambda value holds the value lambda.

The second constructor constructs an object whose stored parameters are initialized from parm. You can obtain and set the current parameters of an existing distribution by calling the param() member function.

Header: <random>

Namespace: std

© 2014 Microsoft