halcheck 1.0
Loading...
Searching...
No Matches

◆ container() [1/2]

template<typename T , typename F >
T halcheck::gen::container ( lib::atom id,
F gen )

Generates a random container value.

Template Parameters
TThe type of container to generate.
FA nullary function type.
Parameters
idA unique identifier for the generated value.
genA function producing random values for the container.
Returns
A random container whose elements are drawn from gen.